Dashboards & Visualizations

i can not calculate response time to display in chart from this query

karthi2809
Builder

index=xxx source=daltrace.log |rex field=_raw " TRACE # (?.)#(?.)#(?.)#(?.)#(?.)#(?.)#(?.)#(?.)#(?.)#(?.)#(?.)"|eval Response_Time=(RESPONSETIME/1000) |timechart eval(round(avg(Response_Time),2) as AvgResponseTime by OPERATIONNAME |fillnull value=0.00

Tags (2)
0 Karma

jplumsdaine22
Influencer

The normal text field when you post a question will not render < or >. Your regular expression is not rendering. To enter code correctly, enter a newline and indent 4 spaces.

Like this
0 Karma

jplumsdaine22
Influencer

The most likely issue is that the field RESPONSETIME does not exist in the data or might not be a numeric field. Does this search return results?

index=xxx source=daltrace.log RESPONSETIME=*

If RESPONSETIME does exist, it might not be a numeric field. Does this search return results?

index=xxx source=daltrace.log | stats sum(RESPONSETIME)

Alternatively, are you getting any error when you run the search relating to eval?

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...