feature request - add historic log of queries

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

feature request - add historic log of queries

Post by tacolover101 »

hello,

i think it would be very useful for the ability to see past queries / filters that have been used. this could be global or per dashboard.

thanks,

tacolover101
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: feature request - add historic log of queries

Post by mcapra »

The Audit Log with "Log User Queries" enabled should be able to provide that. Albeit it's not the most accessible thing and doesn't do non-Admin users any good.

How in your use case would this information be displayed visually? We're a bit hung up on how you would do that without seriously cluttering up the dashboard.

When a query is saved, the user labels it which makes displaying it relatively easy; Just show the label and maybe date created. When it comes to an arbitrary Elasticsearch query, trying to concisely visualize something like a lengthy Lucene search and a dozen odd filters sounds tricky. Timestamp would be one option, but that's not really in the spirit of what the feature would be providing; An accessible way to fix "oh shoot what was that Apache query with foo=bar in the POST".
Former Nagios employee
https://www.mcapra.com/
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: feature request - add historic log of queries

Post by tacolover101 »

perhaps have it be a JS expand, located under the current query, for the past entries that have been typed in the query. if it's already in the audit log then that's a great place to pull the data from :)

i don't think it needs to show more than 3-5 entries, but perhaps a JS pop-out to avoid cluttering the main dashboard? (just throwing an idea out there)

the main reason this becomes useful is on a day to day basis is you may be analyzing the same data set for x problematic server, and it helps to have a 'quick' link to get back to where you were with the current dashboard.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: feature request - add historic log of queries

Post by mcapra »

Filed under ID 11540. We chatted a bit about this, and it'd actually be easier to just take a "snapshot" of the dashboard every time a new one is rendered and store that somewhere like a "history". Each user gets their own history with a timestamp and can backtrack to previous views.

It's worth mentioning that NLS already remembers previous searches, though this isn't the exact functionality requested:
2017_04_11_10_15_03_Dashboard_Nagios_Log_Server.png
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
https://www.mcapra.com/
Locked