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?
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))
That allows you to set a single variable to multiple values. I want to set multiple variables based on a tag.
@kostellod
Do you have try with this filter option “multi-select” ?