Paste Search Dynamic
codec => rubydebug
  1. input {
  2.     file {
  3.         path => "/usr/share/logstash/quality/*/*.txt"
  4.     start_position => "beginning"  
  5.     file_completed_action => "delete"
  6.     mode => "read"
  7.     sincedb_path => "/dev/null"
  8.     }
  9. }
  10.  
  11. filter {
  12.  grok { match => { "message" => "%{CISCO_REASON}%{SPACE}%{BACULA_DEVICE}%{SPACE}%{NUMBER}%{SPACE}%{IPV4:IPSRC}%{SPACE}%{NUMBER:PORTSRC}%{SPACE}%{IPV4:IPDES}%{SPACE}%{INT:PORTDES}%{SPACE}%{WORD}%{SPACE}%{WORD:payload}%{SPACE}%{INT:packets}%{SPACE}%{INT}%{SPACE}\(%{NUMBER:packetloss:int}%\)%{SPACE}%{NUMBER:maxdelta:int}%{SPACE}%{NUMBER:maxjitter:int}%{SPACE}%{NUMBER:meanjitter:int}%{GREEDYDATA}" }
  13.  }
  14. }
  15.  
  16. output {
  17.   elasticsearch {
  18.     hosts => ["localhost:9200"]
  19.     ilm_enabled => false  
  20.     index => "quality-%{+YYYY.MM}"
  21. }
  22.  
  23.  stdout {
  24.    codec => rubydebug
  25.  
  26. }
  27. }
Parsed in 0.007 seconds