-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Issuing a search in a dashboard without stream filters does not search from all streams #20671
Comments
If i'm understanding correctly, are you saying that if a new stream is creating, your dashboard(s) is unable to find any messages in this stream without explicitly adding the stream to the list of streams in the search for that specific dashboard widget? I'm having a difficult time understanding what is broken or what issue you have specifically. Are you able to provide a series of screenshots or a video/screen recording? Graylog already, by default, will search for messages in ALL streams, unless an explicit list of streams is provided for the search. Is the issue you are having unique to dashboards or does it happen with the search page? |
The search page does indeed search all possible streams when none are selected, just like the tooltip on the page explains. However, executing the same search on a dashboard does NOT search ALL streams. |
The settings are just like in your example screenshot. No matter what relative time range or text filter I put in the widget - it never finds any messages which are not in the "All Messages" stream if I dont explicitly put all the streams in the filter on the dashboard widget. On the Search-page this works without putting these streams there. The dashboard widget seems to find only messages which are in the "All Messages" stream when no stream is explicitly specified as a filter. Additional details: the message I am looking for is in a separate stream and the stream settings has the option remove from all messages ticked in so the message does not exist in "All Messages" stream. |
Hey @ottorei, this bug report is very surprising to me, because I use that functionality all the time. I cannot verify that this is an issue in recent versions. There has to be more to it in your local setup that prevents it from working. Maybe your index ranges need to be recalculated? Can you try creating a widget on search that shows messages and copy it to a dashboard to verify that it's not showing these in that context anymore? |
This is how I have created the searches in the dashboard originally. Not sure about the index range recalculation, why would the dashboard's search widget not search every stream but the search page itself does? Also, this issue is present on 6.0.7-1 - did you test on this version? |
Expected Behavior
The search widget from dashboard should search from all streams if no streams are configured as a filter.
Current Behavior
When stream search widget has no streams attached to it, it should search from all the streams like the tooltip says. However, it does not do this. The search on the search-page works correctly without any streams selected. The dashboard also return the messages when each and every stream is selected on the widget settings but will not work with empty selection. The empty selection probably attempts to search from the All Messages stream.
Possible Solution
Search all streams if the streams filter is empty on any dashboard widget.
Steps to Reproduce (for bugs)
Context
Trying to copy existing premade searches to a dashboard with correct premade filters.
Your Environment
The text was updated successfully, but these errors were encountered: