Skip to content

Instantly share code, notes, and snippets.

@ddikman
Created January 28, 2016 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ddikman/118a7481d3a4df13e941 to your computer and use it in GitHub Desktop.
Save ddikman/118a7481d3a4df13e941 to your computer and use it in GitHub Desktop.
Example of a filebeat config
filebeat:
prospectors:
-
paths:
# - C:\Users\David\AppData\Local\Temp\UMS-logs\um-log*.log
- /var/log/um-log-*.log
encoding: plain
input_type: log
force_close_files: false
registry_file: "C:/ProgramData/filebeat/registry"
############################# Output ##########################################
output:
logstash:
hosts: ["ourlogstashhostname.co.uk:9300"]
############################# Logging #########################################
logging:
to_files: true
files:
path: /var/log
name: filebeat
rotateeverybytes: 10485760 # = 10MB
keepfiles: 2
level: debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment