Logging

This section contains the options for configuring the Metricbeat logging output. The logging system can write logs to syslog or rotate log files. If logging is not explicitly configured, file output is used on Windows systems, and syslog output is used on Linux and OS X.

A sample configuration is as follows:

logging.level: debug
logging.to_files: true
logging.files:
path: C:logsmetricbeat
name: metricbeat.log
keepfiles: 10

Some of the available configuration options are as follows:

  • level: To specify the logging level.
  • to_files: To write all logging output to files. The files are subject to file rotation. This is the default value.
  • to_syslog: To write logging output to syslogs if this setting is set to true.
  • files.path, files.name, and files.keepfiles: These are used to specify the location of the file, the name of the file, and the number of recently rotated log files to keep on the disk.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.1.57