Page 1 of 1

feature request - add historic log of queries

Posted: Mon Apr 10, 2017 12:53 pm
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

Re: feature request - add historic log of queries

Posted: Mon Apr 10, 2017 3:33 pm
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".

Re: feature request - add historic log of queries

Posted: Mon Apr 10, 2017 6:06 pm
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.

Re: feature request - add historic log of queries

Posted: Tue Apr 11, 2017 10:15 am
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