Calling NagiosLog API from Java example

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
dclsystems
Posts: 14
Joined: Wed Dec 13, 2017 5:33 pm

Calling NagiosLog API from Java example

Post by dclsystems »

Is there any code available showing how to Call NagiosLog API from Java.
Thanks
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Calling NagiosLog API from Java example

Post by cdienger »

I don't have any java specific examples, but I would think that it would be pretty straight forward for anyone familiar with java to make http(s) requests.

Here's is some documentation on the API:

https://support.nagios.com/kb/article/n ... s-596.html.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Calling NagiosLog API from Java example

Post by mcapra »

This calls the ElasticSearch API, which isn't super different from the Nagios Log Server API:
https://github.com/mcapra/nagios-nlsexport
Former Nagios employee
https://www.mcapra.com/
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Calling NagiosLog API from Java example

Post by cdienger »

Thanks for bringing this up again, @mcapra! I was actually driving in today a remembered this tool that you created!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked