Log stash 5.0.0 does not working after "Failed (Connection refused - Connection refused). Sleeping for 2.0" message.
I was checking for an error situation.
- "A" tcp server working on 9812 port..
- log stash output to A tcp server (it works.)
- Suddenly i kill "A" server
- then log stash print "Failed (Connection refused - Connection refused). Sleeping for x.x" message
- Restart A in the same way as environment # 1.
- finally log stash does not working......T^T
logstash.conf
input {
file {
#start_position => "beginning"
start_position => "end"
path => ["/data/app_logs/api.log"]
codec => "json"
}
}
filter {
mutate {
remove_field => [ "[headers][cookie]" ]
}
}
output {
tcp {
host => "IP"
port => "9812"
codec => json_lines
}
stdout { codec => rubydebug }
}
How can i fix it this issue...