reducing logstash log level

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
zakhemj
Posts: 9
Joined: Tue Dec 02, 2014 4:12 pm

reducing logstash log level

Post 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.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: reducing logstash log level

Post 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
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked