Advertisement
hexadecimalcreature

logstash.conf

Jun 21st, 2021
2,021
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. input{
  2.     file{
  3.         path =>"C:\Users\abhi\Desktop"
  4.         start_position => "beginning"
  5.     }
  6. }
  7.  
  8. filter{
  9.     grok{
  10.          match => {"message"=>"%{COMBINEDAPACHELOG}"}
  11.     }
  12.     date{
  13.         match=> ["timestamp","dd/MM/yyyy:HH:mm:ss Z"]
  14.     }
  15.  
  16.     geoip {
  17.         source => "clientip"
  18.     }
  19. }
  20. output {
  21.     elasticsearch{
  22.         hosts=>["localhost:9200"]
  23.         index =>"test_run_1"
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement