logstash not receiving logs
logstash not receiving logs
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
What are the specs of your log server cluster instances?
CPU's
Memory
HD (SSD?)
How many logs per day are you sending?
CPU's
Memory
HD (SSD?)
How many logs per day are you sending?
Re: logstash not receiving logs
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.
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
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:
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
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
Some more info on ES memory tuning: http://www.elasticsearch.org/guide/en/e ... izing.html
Re: logstash not receiving logs
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
-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
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.
Re: logstash not receiving logs
after i increased the memory for each nodes, now the problem seems gone. thanks.
Re: logstash not receiving logs
Glad you have a resolution. We'll go ahead and close this thread. Thanks.