Hi,
Is it possible to tweak the loglevel of Logstash to figure out a bug in our infrastructure.
I'd like to gain insights into how a messages is received in Logstash and then forwarded to ElasticSearch.
Thanks,
Rick
Logstash loglevel
Re: Logstash loglevel
Debug logging can be enabled with the following steps:
1. Edit /etc/init.d/logstash and change line 64 from:
DAEMON_OPTS="agent -f ${LS_CONF_DIR} -l ${LS_LOG_FILE} ${LS_OPTS}"
to:
DAEMON_OPTS="agent -f ${LS_CONF_DIR} -l ${LS_LOG_FILE} ${LS_OPTS} --debug"
2. Restart the service logstash with:
systemctl daemon-reload
service logstash restart
This increases the logging in /var/log/logstash/logstash.log. It can generate A LOT of data so you only want to enable this for short periods of time - just long enough to reproduce the behavior - and then revert the changes.
1. Edit /etc/init.d/logstash and change line 64 from:
DAEMON_OPTS="agent -f ${LS_CONF_DIR} -l ${LS_LOG_FILE} ${LS_OPTS}"
to:
DAEMON_OPTS="agent -f ${LS_CONF_DIR} -l ${LS_LOG_FILE} ${LS_OPTS} --debug"
2. Restart the service logstash with:
systemctl daemon-reload
service logstash restart
This increases the logging in /var/log/logstash/logstash.log. It can generate A LOT of data so you only want to enable this for short periods of time - just long enough to reproduce the behavior - and then revert the changes.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
BDRThermea
- Posts: 3
- Joined: Mon Jun 25, 2018 4:04 am
Re: Logstash loglevel
Thanks, for your reply.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Logstash loglevel
No problem, let us know if you have any difficultyBDRThermea wrote:Thanks, for your reply.