logstash not receiving logs

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
hlyeung
Posts: 14
Joined: Tue Dec 09, 2014 8:42 am

logstash not receiving logs

Post by hlyeung »

sometimes, we cannot receives log. after we restart logstash and elasticsearch, the log incomed immediately. thanks.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: logstash not receiving logs

Post by scottwilkerson »

What are the specs of your log server cluster instances?
CPU's
Memory
HD (SSD?)

How many logs per day are you sending?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
hlyeung
Posts: 14
Joined: Tue Dec 09, 2014 8:42 am

Re: logstash not receiving logs

Post by hlyeung »

8 v-cpu: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
8G ram
HD: 100G, SATA
log per day: 4G so far
all 4 nodes running logstash and elasticsearch.

after i reboot nodes then it receives log again.
thanks for your help.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: logstash not receiving logs

Post by scottwilkerson »

This may be the Java VM running out of heap memory.

You can increase this by setting ES_HEAP_SIZE in /etc/sysconfig/elasticsearch. The general recommendation is to give it half of the available RAM. If you have 8GB total:

Code: Select all

ES_HEAP_SIZE=4g
MAX_LOCKED_MEMORY=unlimited
That last line keeps the ES heap from being swapped if possible (system limits may need to be adjusted to allow this).

Some more info on ES memory tuning: http://www.elasticsearch.org/guide/en/e ... izing.html
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
nozlaf
Posts: 172
Joined: Sun Nov 09, 2014 9:50 pm
Location: Victoria, Australia

Re: logstash not receiving logs

Post by nozlaf »

I have the same issue, resorted to nightly reboots to work around the issue simple cron entry, may be a good feature if this was a configuration option from within NLS
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: logstash not receiving logs

Post by sreinhardt »

This really isn't something you should need to change very often. You are more than welcome to put in a feature request for it if that is something you want added.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
hlyeung
Posts: 14
Joined: Tue Dec 09, 2014 8:42 am

Re: logstash not receiving logs

Post by hlyeung »

after i increased the memory for each nodes, now the problem seems gone. thanks.
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: logstash not receiving logs

Post by cmerchant »

Glad you have a resolution. We'll go ahead and close this thread. Thanks.
Locked