May 2019
Intermediate to advanced
442 pages
11h 36m
English
This exporter requires a configuration file for its setup. There are five main sections in the configuration, which we can dissect in the following snippets from the exporter's configuration file deployed in our static infrastructure test environment. The global section sets the configuration format version. Version 2 is currently the standard configuration version, and so we set it here:
global: config_version: 2
The input section defines the location of the logs to be parsed. If readall is set to true, the file will be completely parsed before waiting for new lines; as we can see, we're not doing that in our example:
input: type: file path: /var/log/syslog readall: false
The grok section loads the patterns to use for parsing. ...
Read now
Unlock full access