Page 1 of 1

reducing logstash log level

Posted: Wed Mar 25, 2015 3:04 pm
by zakhemj
Hello

Is there a way in Nagios Log Server (UI or command-line) that I can reduce the verbosity / log-level? Despite aggressively rotating the logs, I cannot keep up with the growth in /var/log. I have read some of the logstash documentation which indicates that the log verbosity can be increased from the default but not decreased. Here is the process listing from logstash:

Code: Select all

nagios   20021 20019 99 15:58 ?        00:07:04 /usr/bin/java -Djava.io.tmpdir=/usr/local/nagioslogserver/tmp -Xmx500m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -Djava.awt.headless=true -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -jar /usr/local/nagioslogserver/logstash/vendor/jar/jruby-complete-1.7.11.jar -I/usr/local/nagioslogserver/logstash/lib /usr/local/nagioslogserver/logstash/lib/logstash/runner.rb agent -f /usr/local/nagioslogserver/logstash/etc/conf.d -l /var/log/logstash/logstash.log -w 4
Thank you.

Re: reducing logstash log level

Posted: Wed Mar 25, 2015 3:42 pm
by jolson
We can see what is taking up your space with the following command, make certain that it is Logstash:

Code: Select all

ll -hR /var/log
It is very unusual for logstash to take up that much space. Are there any errors that are appearing repeatedly in logstash.log that should be addressed? Let's take a look:

Code: Select all

tail -n30 /var/log/logstash/logstash.log
If we can't find anything wrong, you may be interested in logrotate:
http://linuxcommand.org/man_pages/logrotate8.html

Best,


Jesse