Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (29 sloc) 0.713 kb
input {
file {
path => "/home/vagrant/logstash/*.log"
type => "cdn"
}
}
filter {
grok {
type => "cdn"
pattern => "%{IPORHOST:message_ip} %{IPORHOST:message_hostname} - %{HTTPDATE:message_date} \"%{WORD:message_httpmethod} %{URI:message_uri} HTTP/%{NUMBER:message_httpversion}\" %{NUMBER:message_responsecode}"
}
kv { field_split => "&?" }
mutate { remove => [ "@message" ]
remove => [ "@source" ]
remove => [ "@source_path" ]
remove => [ "@source_host" ]
}
date {
match => [ "message_date", "dd/MMM/YYYY:HH:mm:ss Z" ]
}
}
output {
stdout { debug => true debug_format => "json"}
elasticsearch_http {
host => "localhost"
port => "9200"
# flush_size => 100
}
}
Jump to Line
Something went wrong with that request. Please try again.