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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...