Manual reload of Configuration not working
- Dominant language
- Java
- Stars
- 14.9k
- Forks
- 3.5k
- Avg merge
- 19h 14m
- Merged PRs (30d)
- 63
Description
Manual reload of configuration file not working
- Version: 6.0.0-alpha1
- Operating System: SLES11
before reload
stdout {
codec => rubydebug
\# codec => line
}
after reload
stdout {
\# codec => rubydebug
codec => line
}
The log format should have change from rubydebug to line :
but no change in the log generated
{
"instance" => "sth_2",
"role" => "logstash",
"clust" => "test",
"ptype" => "heartbeat",
"message" => "ok",
"type" => "mon",
"@timestamp" => 2017-05-10T22:20:16.774Z,
"pilote" => "elk",
"ctype" => "test",
"host" => "yval0900.inetpsa.com",
"@version" => "1",
"fonction" => "metrologie",
"environnement" => "test",
"idx" => "dsoa"
}
[2017-05-11T00:20:18,381][WARN ][logstash.runner ] SIGHUP received.
{
"instance" => "sth",
"role" => "logstash",
"clust" => "test",
"ptype" => "heartbeat",
"message" => "ok",
"type" => "mon",
"path" => "/users/sth00/logs/mon_2017-05-10.log",
"@timestamp" => 2017-05-10T22:20:19.147Z,
"pilote" => "elk",
"ctype" => "test",
"host" => "yval0900.inetpsa.com",
"@version" => "1",
"fonction" => "metrologie",
"environnement" => "test",
"idx" => "dsoa"
}
It should be working as writen
https://www.elastic.co/guide/en/logstash/master/reloading-config.html
If you enable automatic reload and set it to 1 hour for example, then the manual reload of configuration which was working with 5.2.2, 5.3.2 or 5.4.0 and is now not running with 6.0.0-alpha1.
but 5 minutes later the config was reloaded, maybe because of the sheduled automatic reload
{
"instance" => "sth",
"role" => "logstash",
"clust" => "test",
"ptype" => "heartbeat",
"message" => "ok",
"type" => "mon",
"path" => "/users/sth00/logs/mon_2017-05-10.log",
"@timestamp" => 2017-05-10T22:57:29.148Z,
"pilote" => "elk",
"ctype" => "test",
"host" => "yval0900.inetpsa.com",
"@version" => "1",
"fonction" => "metrologie",
"environnement" => "test",
"idx" => "dsoa"
}
[2017-05-11T00:59:17,489][INFO ][logstash.pipeline ] Starting pipeline {:pipeline_id=>"main", :thread=>"#", "pipeline.workers"=>1, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>5, "pipeline.max_inflight"=>125}
2017-05-10T22:59:17.509Z yval0900.inetpsa.com ok
[2017-05-11T00:59:17,559][INFO ][logstash.pipeline ] Pipeline started {:pipeline_id=>"main", :thread=>"#"}
[2017-05-11T00:59:17,561][INFO ][logstash.agent ] Pipelines running {:count=>1, :pipelines=>["main"]}
2017-05-10T22:57:37.049Z yvas3900.inetpsa.com ok
2017-05-10T22:57:39.149Z yval0900.inetpsa.com ok
2017-05-10T22:57:49.148Z yval0900.inetpsa.com ok
2017-05-10T22:57:59.149Z yval0900.inetpsa.com ok
2017-05-10T22:58:09.148Z yval0900.inetpsa.com ok
Contributor guide
Assessment
This issue has not been assessed yet.