Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. input {
  2. file {
  3. type => "application_log"
  4. path => [ "/var/www/logs/*.log" ]
  5. }
  6. }
  7.  
  8. filter {
  9. if [type] == "application_log" {
  10.  
  11. grok {
  12. patterns_dir => ["/etc/logstash/patterns"]
  13. match => ["message", "%{LIGHTTPD}"]
  14. }
  15.  
  16. # geoip {
  17. # source => "clientip"
  18. # }
  19.  
  20. # date {
  21. # match => [ "logdate", "yyyy-MM-dd HH:mm:ss,SSS" ]
  22. # }
  23. }
  24. }
  25.  
  26. output {
  27. if [type] == "application_log" {
  28. # elasticsearch {
  29. # hosts => ["10.0.5.30:9200"]
  30. # index => "www2"
  31. # }
  32. stdout { }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement