logstash is crashing

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
comfone
Posts: 127
Joined: Fri May 01, 2015 3:28 am

logstash is crashing

Post by comfone »

Hi All
We are using 2 Nagios Log Server Instances Version 1.4.2 (VM appliance)
The logstash is crashing several times a day.
Attached the logstash.log file.
Does anybody experiance the same problem?
You do not have the required permissions to view the files attached to this post.
Last edited by comfone on Fri Dec 02, 2016 5:15 am, edited 2 times in total.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: logstash is crashing

Post by tmcdonald »

How much memory do each of these servers have? Usually when there are issues in Logserver, upping the RAM is a good first step since it can be memory-intensive.
Former Nagios employee
comfone
Posts: 127
Joined: Fri May 01, 2015 3:28 am

Re: logstash is crashing

Post by comfone »

I gave 10GB RAM each of them.
Attached you see the RAM usage measured by Nagios XI.

Is there a way to monitor and alarm using Nagios XI if logstash and elasticsearch are running on NLS?
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: logstash is crashing

Post by rkennedy »

I would add two checks to your machine using the NRPE wizard. One making sure that logstash is running, and the other for elasticsearch.
Former Nagios Employee
comfone
Posts: 127
Joined: Fri May 01, 2015 3:28 am

Re: logstash is crashing

Post by comfone »

Thank you for the feeback.
I'll monitore NLS but I would need your help to troubleshoot why Logstash is crashing.
Attached you will find an extract of the "secure" log as well as "logstash" log.
I need your urgent support as NLS is not usable with logstash crashing several times a day.
Thank you.
Last edited by comfone on Thu Oct 13, 2016 5:07 am, edited 1 time in total.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: logstash is crashing

Post by rkennedy »

Could you post your Elasticsearch log as well? It's located at /var/log/elasticsearch/ - the name of it will be yourcluster.log (where yourcluster is the actual cluster id).

Could you also post a screenshot of your Backup & Maintenance page, and the output of curl 127.0.0.1:9200/_cat/indices?v
Former Nagios Employee
comfone
Posts: 127
Joined: Fri May 01, 2015 3:28 am

Re: logstash is crashing

Post by comfone »

Attached the requested information.
Thank you in advance for your quick help.
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: logstash is crashing

Post by mcapra »

With 10GB allocated to each machine, you're likely encountering memory issues. Looking at the list of open indices, there's about 211GB worth of indices open currently that is trying to fit into the Java heap. Even with the compression done by elasticsearch on the back-end, this exceeds what your environment has available in terms of resources. With your nodes only having 20GB allocated between them (this being reduced to 10GB total to leave room for maintenance tasks), you're likely exhausting the cluster.

I would suggest increasing the memory available to each of these nodes (up to 64GB max) and seeing if that solves the issue. You could also try reducing the number of open indices you have at any given moment via the "Backup & Maintenance" page by adjusting the "Close indexes older than" value.
Former Nagios employee
https://www.mcapra.com/
Locked