-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Alerting] "View in App" for ES Query Alert Type #89480
Comments
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
Currently, during each execution of this alert type, when the threshold conditions are matched, the following is stored inside the alert instance state: If we stored the alert instance state inside the event log when Example of event log entry with alert instance state
|
That's a big (as in bytes) ask! :-) Not because this specific data is too large, but because we don't know how big instance state is for other alerts. But in general, this feel like it should be part of the "alerts as data" work coming - not clear WHAT kind of data we'll be storing for alerts, or WHERE, but presumably once we have a mechanism, this alert could make use of it to store that state.
So the idea would be to get all the I'd love to have a super-easy version of this that just opened Discover with your query, forget about the time ranges. There would be noise - all the docs that didn't make the threshold limit would show. But perhaps that would be useful none-the-less - you might find that you wanted to decrease your threshold, for instance, if you saw situations where you did want to be notified, but the threshold didn't set the alarm off. Bigger problem is that we can't just throw this into Discover, AFAIK, since Discover works off of KQL | Lucene, not query DSL. I guess that's a good question - why isn't there something like Discover in Kibana, that works off of query DSL? Or is there and I'm not aware of it? Or maybe we could morph Discover such that we can feed it query DSL for it to make the calls with, but not allow the "original query" (in query DSL) to be modified (maybe show it as read-only text?). You'd still want all the other control-ly bits to work - time ranges, additional filters, etc. |
Just happened to think that we could likely construct the query we're going to run, and provide a way to paste that into the dev console, for the user to run. Should/could be paired with #84417 |
@arisonl What do you think of closing this since there have been no requests for it since the ES Query type was introduced? |
hey @ymao1, for awareness there is a number of user requests around being able to access the query payload. Now, first they are not all necessarily around the ES query type, but I think that starting with the ES query type might go a long way. Second, we have a number of requests around being able to manipulate the payload in order to populate action parameters. Could the "view in app" be a first step towards that? |
@ymao1 when the time comes, I think that we should think about these issues as an end-to-end use case with the UX that we want to produce around it, rather than separate, independent increments. |
For the ES query alert type #88528, we would like to explore a way of allowing users to access the raw documents that matched their query and threshold conditions, possible through a "View in App" view. The top 1000 hits are currently passed through the action context for use inside actions, so this is one way they can currently see the documents but (1) it is not ideal to be storing that much data even temporarily inside of a saved object and (2) if the query happened to match hundreds of thousands (millions!?!?!) of documents, the user would not be able to get them.
The text was updated successfully, but these errors were encountered: