Logstash

Ruby code posted
created at 17 Sep 10:07

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
input { stdin { } }

filter {
  grok {
    match => { "message" => "%{COMBINEDAPACHELOG}" }
  }
  date {
    match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
  }
}

output {
  elasticsearch { host => localhost }
  stdout { codec => rubydebug }
}
262 Bytes in 2 ms with coderay