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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...