Logstash cheat sheet: Difference between revisions

Line 203: Line 203:
   # If this options is not defined, the hostname is used.
   # If this options is not defined, the hostname is used.
   name: ShipperHostName
   name: ShipperHostName
logging:
  # Send all logging output to syslog. On Windows default is false, otherwise
  # default is true.
  #to_syslog: true
  to_syslog: false
  # Write all logging output to files. Beats automatically rotate files if configurable
  # limit is reached.
  #to_files: false
  to_files: true
  # Enable debug output for selected components.
  #selectors: []
  # Set log level
  #level: error
  level: INFO
  files:
    # The directory where the log files will written to.
    path: /var/log/filebeat
    # The name of the files where the logs are written to.
    name: filebeat.log
    # Configure log file size limit. If limit is reached, log file will be
    # automatically rotated
    rotateeverybytes: 10485760 # = 10MB
    # Number of rotated log files to keep. Oldest files will be deleted first.
    keepfiles: 7
</syntaxhighlight>
</syntaxhighlight>