Hello,
I have some problem with logstash configuration. Here is my logstash configuration
input {
beats {
port => 5044
}
}
filter {
}
output {
elasticsearch {
hosts => ["localhost"]
sniffing => true
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
stdout { codec => rubydebug }
}
So, I try to send some logs to logstash and i receive it in stdout.
{
"message" => "[I 160523 16:31:45 web:1946] 200 GET /rest/v1/ru/advert/list?last_adv_uuid=00000000-0000-0000-0000-055984a23ea3 (192.168.200.10) 63.18ms",
"@version" => "1",
"@timestamp" => "2016-05-23T16:31:45.449Z",
"count" => 1,
"beat" => {
"hostname" => "e3da30034825",
"name" => "e3da30034825"
},
"source" => "/aiwona/service/var/logs/aiwona.log",
"offset" => 1018227,
"type" => "api-logs",
"input_type" => "log",
"fields" => nil,
"host" => "e3da30034825",
"tags" => [
[0] "beats_input_codec_plain_applied"
]
And in ES too.
But, after 5 minutes, ES stop to accept my logs, instead of stdout.
Can anybody help me?
Thank you for reading
ES configuration is default.