cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create a parameter with multiple values

kostellod
Visitor

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?

3 REPLIES 3

IzabelaRokita
Community Team
Community Team

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))

 

image.png

 

image (1).png

 

 

 

 

 

 

 

 

image (2).png

 

That allows you to set a single variable to multiple values. I want to set multiple variables based on a tag.

gbaudart
DynaMight Champion
DynaMight Champion

@kostellod 

Do you have try with this filter option "multi-select" ? 

gbaudart_0-1704925440721.png

 

Observability Consultant - Dynatrace Professional Certified

Featured Posts