NLS 2.1.7 API documentation

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
stooge
Posts: 12
Joined: Fri Jul 31, 2020 12:17 pm

NLS 2.1.7 API documentation

Post by stooge »

Hello,

I'm new to Nagios, never used it before. Currently I'm trying NLS (v2.1.7) in the lab as PoC and I'm having problems figuring out how to do several things:
1. Create a new dashboard - via the GUI and, especially, using the API
2. Change the displayed name of an existing dashboard (for example, there's the "My Default Dashboard" that I would like to call something else) via API
3. Delete older dashboards that I don't need any more via API
4. I know how to add new records, but I would like to delete older records that I don't need any more. I believe 'curl -XDELETE "http://127.0.0.1/nagioslogserver/api/ba ... 7f0190686d"' should help me do this, I'll give it a shot
5. I would like to show/hide dashboard columns via API

Hopefully I just haven't looked in the right place to find the answers but I've already tried google/online docs/support forum, without luck.

All help appreciated.

Thanks,
AB
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: NLS 2.1.7 API documentation

Post by jbrunkow »

Hello @stooge!

Welcome to the forum. :D

Unfortunately, the API endpoints mentioned in the documentation for Log Server are all that are currently available. There is not currently a way to manipulate dashboards from the API, but we could make a request for it to be added as a feature in a future release.

Yes, I believe that -XDELETE is the correct curl option to delete something from Elastic Search. Let us know how that goes for you. :)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
stooge
Posts: 12
Joined: Fri Jul 31, 2020 12:17 pm

Re: NLS 2.1.7 API documentation

Post by stooge »

Hi @jbrunkow,

Please go ahead and lock this thread. I was able to figure out the http requests the NLS Web interface sends and sending those same reqeuests works for me so I'm all set.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NLS 2.1.7 API documentation

Post by benjaminsmith »

Please go ahead and lock this thread. I was able to figure out the http requests the NLS Web interface sends and sending those same reqeuests works for me so I'm all set.
Excellent! We'll close this out.

Have a great weekend!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked