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

Logs DQL query to fetch user selected current timeframe

gcnaidu
Newcomer

Query: fetch logs, from:now()-2h

Instead of from:now()-2h,k I would like to pass user selected range (Current timeframe) dynamically and fetch logs accordingly 

2 REPLIES 2

Taylor-Sanchez
Dynatrace Mentor
Dynatrace Mentor

Could you clarify your question? What do you mean by user-selected range and the current timeframe? In DQL you can normally specify a specific selected range. 

https://docs.dynatrace.com/docs/shortlink/dql-use-queries#specifytimeframe

Dynatrace ACE Services Consultant

p_devulapalli
Champion

are you after the TimeframeSelector?

TimeframeSelector | Dynatrace Developer

Here is some past discussion around this if it helps

Solved: Using Timeframe Selector as an input for a DQL query - Dynatrace Community

Phani Devulapalli

Featured Posts