Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. input {
  2. file {
  3. type => "syslog"
  4. path => [ "/var/log/messages", "/var/log/syslog", "/var/log/*.log", "/var/log/cron", "/var/log/secure" ]
  5. }
  6.  
  7. file {
  8. type => "apache-access"
  9. path => "/var/log/httpd/access_log"
  10. }
  11.  
  12. file {
  13. type => "apache-error"
  14. path => "/var/log/httpd/error_log"
  15. }
  16. }
  17.  
  18. output {
  19. # Output events to stdout for debugging. Feel free to remove
  20. # this output if you don't need it.
  21. stdout { }
  22.  
  23. # Ship events to the amqp fanout queue named 'rawlogs"
  24. amqp {
  25. host => "some.host.com"
  26. exchange_type => "fanout"
  27. name => "amq.fanout"
  28. user => "graylog2"
  29. password => "secret"
  30. vhost => "syslog"
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement