Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Doing stats on multivalued json fields

$
0
0
Hi Ninjas Im dealing with some deeply nested json events like: "sendTime":"2017-09-21T17:02:06.583+02:00","runningProcess":[{"Name":"_Total","PercentProcessorTime":"100","WorkingSetPrivate":"1557368"},{"Name":"Bananaservice","PercentProcessorTime":"0","WorkingSetPrivate":"593"},{"Name":"Cherryservice","PercentProcessorTime":"0","WorkingSetPrivate":"7671"},{"Name":"Pineappleservice","PercentProcessorTime":"0","WorkingSetPrivate":"466"},{"Name":"Kiwiservice","PercentProcessorTime":"0","WorkingSetPrivate":"442"},{"Name":"Appleservice","PercentProcessorTime":"0","WorkingSetPrivate":"630"},{"Name":"Peachservice","PercentProcessorTime":"0","WorkingSetPrivate":"1470"} So all i want to do is getting out the avg values over time by each process, something like | stats avg(runningProcess{}.PercentProcessorTime) as CPU by runningProcess{}.Name, _time | stats list(*) as * by _time But without mvexpand and so on, im not getting the right data as just takes the value of the first entry of the mv field by each event. As said, im aware of doing it witch mvexpand etc. but it slows down the search dramatically and i was wondering wheter there is a more elegant solution to get the right data here. Thanks

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>