logging

This is an example configuration block:

logging:
  loglevel: INFO
  logfile:
  logformat: default
  blacklist:
    - 'elasticsearch'
    - 'urllib3'
    - 'werkzeug'

loglevel

Must be one of:

  • CRITICAL
  • ERROR
  • WARNING
  • INFO
  • DEBUG

The default value is INFO

logfile

This should be a path to a file writable by the user running the backend.

There is no default value, which means that logs will be written to STDOUT

logformat

Must be one of:

  • default
  • json
  • logstash (same as json)

json and logstash will output logs formatted in JSON suitable for immediate ingest by Elasticsearch.

The default value is default.

blacklist

The log blacklist permits filtering log lines based on the module’s root logger. The default values of:

  • elasticsearch
  • urllib3
  • werkzeug

…will effectively leave only the logs generated by es_stats_zabbix, es_stats, and protobix.

For full debugging, providing an empty array for this setting will override these defaults:

blacklist: []