Advertisement
Guest User

Untitled

a guest
Apr 18th, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. input {
  2. # file {
  3. # path => "/tmp/in.log"
  4. # type => "logfile" # a type to identify those logs (will need this later)
  5. # start_position => "beginning"
  6. # }
  7. file {
  8. path => "/var/log/apache2/access.log"
  9. type => "a2access" # a type to identify those logs (will need this later)
  10. start_position => "end"
  11. }
  12. file {
  13. path => "/var/log/apache2/error.log"
  14. type => "a2error" # a type to identify those logs (will need this later)
  15. start_position => "end"
  16. }
  17. udp {
  18. port => 5555
  19. type => "udp"
  20. }
  21. tcp {
  22. port => 5555
  23. type => "tcp"
  24. }
  25. syslog {
  26. port => 5514
  27. type => "syslog"
  28. }
  29. }
  30.  
  31. output {
  32. # file {
  33. # path => "/tmp/out.log"
  34. # }
  35. elasticsearch {
  36. hosts => ["127.0.0.1"]
  37. }
  38. if [@metadata][cthostmeta] == "demosystem" {
  39. file {
  40. codec => rubydebug { metadata => true}
  41. path => "/tmp/cthost_out.log"
  42. }
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement