Splunk Enterprise

help on round in timechart

jip31
Motivator

hello

I dont succeed to round the fiel ResponseTime which is a decimaf field with a point instaed a comma

 

index=tutu 
| eval web_duration_ms=round('web_duration_ms', 0)
| timechart avg(web_duration_ms) as ResponseTime by Url

 

 what is wrong please?

Labels (1)
Tags (1)
0 Karma

ashvinpandey
Contributor

@jip31 Please try using the below code:

index=tutu 
| timechart avg(web_duration_ms) as ResponseTime by Url
| eval ResponseTime=round(ResponseTime, 3)

Also, if this reply helped you a thumbs up would be appreciated.

0 Karma

jip31
Motivator

hi

it dont works

is anybody can help please?

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...