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