Guest User

apache_1.conf

a guest
Nov 25th, 2016
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. input {
  2. stdin { }
  3. }
  4.  
  5. filter {
  6. grok {
  7. match => {
  8. "message" => '%{IPORHOST:clientip} %{USER:ident} %{USER:auth} \[%{HTTPDATE:timestamp}\] "%{WORD:verb} %{DATA:request} HTTP/%{NUMBER:httpversion}" %{NUMBER:response:int} (?:-|%{NUMBER:bytes:int}) %{QS:referrer} %{QS:agent}'
  9. }
  10. }
  11.  
  12. date {
  13. match => [ "timestamp", "dd/MMM/YYYY:HH:mm:ss Z" ]
  14. locale => en
  15. }
  16.  
  17. geoip {
  18. source => "clientip"
  19. }
  20.  
  21. useragent {
  22. source => "agent"
  23. target => "useragent"
  24. }
  25. }
  26.  
  27. output {
  28. elasticsearch {
  29. hosts => ["localhost:9200"]
  30. index => "apache_access_logs"
  31. template => "apache_sizing_2.json"
  32. template_name => "elk_workshop"
  33. template_overwrite => true
  34. }
  35. }
Add Comment
Please, Sign In to add comment