Advertisement
Guest User

filebeat config example

a guest
May 12th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.75 KB | None | 0 0
  1. filebeat.inputs:
  2.  
  3. - type: log
  4.   enabled: true
  5.   fields:
  6.     server: nginx
  7.     log_type: access
  8.     env: dev
  9.     domain: app.dev.domain.com
  10.   paths:
  11.    - /home/domains/app_dev/app.dev.domain.com/logs/access.log
  12.  
  13. - type: log
  14.   enabled: true
  15.   fields:
  16.     server: nginx
  17.     log_type: access
  18.     env: prod
  19.     domain: app.domain.com
  20.   paths:
  21.    - /home/domains/app/app.domain.com/logs/access.log
  22.  
  23.  
  24. # cut more than 150 logs below
  25. # ...
  26.  
  27. processors:
  28.   - add_host_metadata: ~
  29.  
  30. output.logstash:
  31.   hosts: ["elk.int:5044"]
  32.   ssl.certificate_authorities: ["/usr/local/etc/filebeat/ssl/logstash-forwarder.crt"]
  33.  
  34. # error, warning, info, debug
  35. logging.level: debug
  36.  
  37. #logging.selectors: ["*"]
  38. logging.to_syslog: true
  39. logging.to_files: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement