Logstash loglevel

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
BDRThermea
Posts: 3
Joined: Mon Jun 25, 2018 4:04 am

Logstash loglevel

Post by BDRThermea »

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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Logstash loglevel

Post by cdienger »

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.
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

Post by BDRThermea »

Thanks, for your reply.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Logstash loglevel

Post by scottwilkerson »

BDRThermea wrote:Thanks, for your reply.
No problem, let us know if you have any difficulty
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked