Adding filter to dashboard panel
In my query, I'm parsing "username" and in my dashboard I'd like to give users the option to only show data for a specific username
If I add
| where username contains "{{username_tofilter}}" it works as expected (I supply username_tofilter and my graph only shows the relevant data points)
If I try adding this graph to my dashboard I get "Error while extracting parameters."
Template variables don't seem the way to go since a custom list looks like it needs to be hard-coded and Metadata Search / Logs Search don't seem applicable
Anyone know how I can do what I'm trying to do? Or if there's something I can reference that can give me a hint
-
Looks like this is not supported yet. Since Dashboard Variables and Search Parameters are different objects and translation does not work. After adding to the dashboard, it is looking for Dashboard Variable with the same name as the parameter on the dashboard, that's why failing. Two solutions:
- Create dashboard variable when adding to a dashboard with the same configuration as a search parameter
- While adding the panel replaces the value of the parameter
or the one you are trying right now creating it from scratch.
We already have an engineering ticket to take a look at this and fix this behavior.
Please sign in to leave a comment.
Comments
2 comments