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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...