Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logstash configuration reload

Tags:

logstash

Is the Logstash configuration reloaded every time the agent is restarted? It doesn't seem to pick up my changes immediately (e.g. changed type value)

I'm running it with an embedded elasticsearch v.0.90.7 on Windows 7 and Kibana 3.

Thank you very much!

Regards, Paul

like image 216
Paul Avatar asked Dec 20 '13 03:12

Paul


People also ask

How do I refresh my Logstash config?

Just use --reload-interval or send a SIGHUP to reload the config!

How do I reload a config file?

To reload Config, select the loaded configurations you want to reload and click Reload. You can only reload a configuration that has the status of Loaded. To refresh Configs, click Refresh. Information for all of the configs in the table is redisplayed.

Where is the Logstash conf file?

You can put any plugin into input/output section, one of them is 'file' plugin elastic.co/guide/en/logstash/current/plugins-inputs-file.html .

What is batch size in Logstash?

Logstash: Limit the message batch size to 10MB. 0. logstash as agent to parse and send to centralized logstash server.


3 Answers

Hot Reload is not yet supported. There is a Issue.

The logstash configuration is loaded at startup, so, if you kill your process (to restart it later), there is no reason why it does not work.

like image 68
yesnault Avatar answered Oct 20 '22 22:10

yesnault


Good news! Dynamic config reloading is currently scheduled for release with Logstash 2.3+(https://www.elastic.co/blog/logstash-lines-2016-02-09)! Just use --reload-interval or send a SIGHUP to reload the config!

like image 24
Andrew Cholakian Avatar answered Oct 20 '22 22:10

Andrew Cholakian


Seems to be available in Logstash 5: https://www.elastic.co/guide/en/logstash/current/reloading-config.html

like image 44
Slava V Avatar answered Oct 20 '22 23:10

Slava V