input { | |
file { | |
path => "/home/vagrant/xdata_log" | |
start_position => beginning | |
} | |
} | |
filter { | |
json{ | |
source => "message" | |
# target => "tweet" | |
} | |
} | |
#filter { | |
# if [path] =~ "access" { | |
# mutate { replace => { "type" => "apache_access" } } | |
# grok { | |
# match => { "message" => "%{COMBINEDAPACHELOG}" } | |
# } | |
# } | |
# date { | |
# match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ] | |
# } | |
#} | |
output { | |
elasticsearch { | |
index => xdata | |
host => localhost | |
} | |
stdout { codec => rubydebug } | |
} |