Dashboards & Visualizations

max abs not returning results

sarit_s
Communicator

Hello,

why this query does not return any results while there are events ?

sourcetype=timekeeper_status host=* | eval offsets=(offsets."0")  | timechart span=30s max(abs(offsets."0")) by host
Labels (1)
Tags (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

The max aggregator needs a field to work with, not a calculated value

sourcetype=timekeeper_status host=* | eval offsets=(offsets."0") 
| eval absoffsets=abs(offsets."0")
| timechart span=30s max(absoffsets) by host
0 Karma

sarit_s
Communicator

already tried it but im getting this error :

Error in 'eval' command: The arguments to the 'abs' function are invalid.
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
sourcetype=timekeeper_status host=* | eval offsets=(offsets."0") 
| eval absoffsets=offsets."0"
| eval absoffsets=abs(absoffsets)
| timechart span=30s max(absoffsets) by host
0 Karma

sarit_s
Communicator

no results ...

 

sarit_s_0-1636536772777.png

 

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In November, the Splunk Threat Research Team had one release of new security content via the Enterprise ...

Index This | Divide 100 by half. What do you get?

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

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...