blob: 5e51b170c26cdd4c276c246bb7a5657b1fc81550 [file] [log] [blame]
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 }
}