Elasticsearch database offline nagios log server

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Elasticsearch database offline nagios log server

Post by Naveed »

Hi,

I am unable to start nagioslog server, I have start elasticsearch service many times, but it again goes down.
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: Elasticsearch database offline nagios log server

Post by mcapra »

Can you share the contents of your Elasticsearch logs? Please zip up the following path and share them via an attachment:

Code: Select all

/var/log/elasticsearch/
Former Nagios employee
https://www.mcapra.com/
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Elasticsearch database offline nagios log server

Post by Naveed »

No log is found at elasticsearch log location:

[root@localhost ~]# cd /var/log/elasticsearch/
[root@localhost elasticsearch]# ls
bc04b135-2d9b-4e73-9576-b17ec5b313c8_index_indexing_slowlog.log bc04b135-2d9b-4e73-9576-b17ec5b313c8.log
bc04b135-2d9b-4e73-9576-b17ec5b313c8_index_search_slowlog.log
[root@localhost elasticsearch]# ls -lhtr
total 0
-rw-r--r--. 1 nagios users 0 Feb 2 15:26 bc04b135-2d9b-4e73-9576-b17ec5b313c8_index_indexing_slowlog.log
-rw-r--r--. 1 nagios users 0 Feb 2 15:26 bc04b135-2d9b-4e73-9576-b17ec5b313c8_index_search_slowlog.log
-rw-r--r--. 1 nagios users 0 Feb 7 15:58 bc04b135-2d9b-4e73-9576-b17ec5b313c8.log
[root@localhost elasticsearch]# cat bc04b135-2d9b-4e73-9576-b17ec5b313c8.log
[root@localhost elasticsearch]# cat bc04b135-2d9b-4e73-9576-b17ec5b313c8_index_search_slowlog.log
[root@localhost elasticsearch]# cat bc04b135-2d9b-4e73-9576-b17ec5b313c8_index_indexing_slowlog.log
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Elasticsearch database offline nagios log server

Post by rkennedy »

What happens if you try to start it? Please share the full output.

Code: Select all

service elasticsearch start
How much ram / disk space did you allocate to the machine, and how many CPU's?
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Elasticsearch database offline nagios log server

Post by Naveed »

Service elasticsearch starts the service, but it alse went to down state with following error message.

[root@localhost ~]# service elasticsearch start
Starting elasticsearch: [ OK ]
[root@localhost ~]# service elasticsearch status
elasticsearch dead but pid file exists


Moreover machine specs are attached.

Thanks
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Elasticsearch database offline nagios log server

Post by rkennedy »

I don't see any specs attached, could you please post them again?
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Elasticsearch database offline nagios log server

Post by Naveed »

PFA
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: Elasticsearch database offline nagios log server

Post by rkennedy »

This simply isn't enough resources for NLS. I would expand the processors to at least 2, and the memory to at least 8GB. As it's java based, the main requirement to use it is going to memory.
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Elasticsearch database offline nagios log server

Post by Naveed »

I increased resources and its start working for me.
Please close this thread.

Thanks
Locked