Splunk Enterprise Security

How to normalize the timechart data by time

Minghao
Explorer

I use the timechart to analyze the data and I want to normalize the data in the timechart

... | timechart span=3d count by step

What I get is like:

_time 1 2 3 

11/2  2 3 4

11/3  3 4 5

And I want to divide the max value of each row and get like this:

_time 1 2 3 

11/2  0.5 0.75 1

11/3  0.6 0.8 1

How can I get this? Thank a lot in advance

Labels (1)
0 Karma

somesoni2
Revered Legend

Try something like this:

 

…| bucket span=3d _time | stats count by _time step
| eventstats max(count) as max by _time
| eval count=round(count/max,2)
| xyseries _time step count

Minghao
Explorer

bucket also works for me ! Thank you very much!

0 Karma

to4kawa
Ultra Champion

... | timechart span=3d count by step
| untable _time step count
| eventstats max(count) as max_count by _time
| eval count=round(count/max_count,1)
| xyseries _time step count

Minghao
Explorer

It does works! Thank you very much!

0 Karma
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...