Query Nagios Log Server logs entries using API

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
mgsteiner
Posts: 5
Joined: Wed Nov 08, 2017 4:53 am
Location: Chaan - Liechtenstein

Query Nagios Log Server logs entries using API

Post by mgsteiner »

Hello all,

I would like to query the logs entries on Nagios Log Server from a script using the API.
Can anybody provide me with some help, where to start or samples?
Does anybody has experience doing that query from Talend using JSON ?

Thanks a lot in advance
BR
Max
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Query Nagios Log Server logs entries using API

Post by cdienger »

The API doesn't allow much in the way of querying - there is the /usr/local/nagios/libexec/check_nagioslogserver.php script that you can review to get an idea of how to submit a query, but will only return the number of entries that a query matched.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mgsteiner
Posts: 5
Joined: Wed Nov 08, 2017 4:53 am
Location: Chaan - Liechtenstein

Re: Query Nagios Log Server logs entries using API

Post by mgsteiner »

cdienger wrote:The API doesn't allow much in the way of querying - there is the /usr/local/nagios/libexec/check_nagioslogserver.php script that you can review to get an idea of how to submit a query, but will only return the number of entries that a query matched.
Thanks for the reply.!
I'm having the script and will check what I can do.

Anyhow, I was expecting using the API I could verify from an external code if a certain log entry already exists in order to avoid duplicated logs.

Nevertheless, this script might workout :)

Thanks and BR
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Query Nagios Log Server logs entries using API

Post by cdienger »

Glad to hear that it may work for you :)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked