28 Sep 2023 07:26 PM - last edited on 24 Jan 2024 11:44 AM by Michal_Gebacki
Is there a way for me to create a parameter that represents multiple values? For example, I want to filter a metric by 3 different values for a field, and possibly another value for a second field. In pseudo-code, it would be something like
If tag = "DEV" then filter by env=development, app_name=MyApp1 or MyApp2 or MyApp3
If tag = "PROD" then filter by env=production, app_name=MyApp1 or MyApp2 or MyApp3
Is this doable?
Solved! Go to Solution.
13 Dec 2023 02:13 PM
Hello @kostellod ,
Multi-select variables allow for such use cases from our side. See the example on the screenshots below and let me know if you need anything else!
fetch logs, scanLimitGBytes:10 | summarize count(), alias:loglines, by:{bin(timestamp, 1m), alias:timeframe, status} | filter in(status, array($Status))
02 Jan 2024 09:04 PM
That allows you to set a single variable to multiple values. I want to set multiple variables based on a tag.
10 Jan 2024 10:24 PM
Do you have try with this filter option "multi-select" ?