Splunk Search

Stats of a field per other extracted fields in previous step

sankalpsah
New Member

I am extracting the type of node: "namenode" or "workernode". Then I get the value of another field say "idle time" for both of them.
I want avg idle time stats per min for each type type of node.

Any help is appreciated.

Thanks!!

0 Karma

woodcock
Esteemed Legend

Like this:

... | timechart span=1m avg($idle time$) BY nodeType
0 Karma

sankalpsah
New Member

What about stats? If i want the stats by nodetype to pipe into another next stage?

0 Karma

woodcock
Esteemed Legend

I do not understand your question; timechart is a statistical command. I could do the same thing with stats but it will take more commands to do it and not work any better. Did you even try running this command to see what is the output? It generates stats by nodetype and there is no reason that you would not be able to pipe this to another command (except, perhaps, if you for some reason refuse to try to do so).

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 ...