I have uploaded alarm logs into Splunk. I would like to be able to show results for how often each alarm type occurs in percentage.
For example, the percentage of total alarms that Alarm 1 makes up and the percentage that Alarm 2 takes up, to see which alarm occurs more.
Thank you!
@marenastrauss ,
In general , below should work
"your search"|stats count by alarm_type|eventstats sum(count) as total | eval perc=round((count/total)*100)
@marenastrauss ,
In general , below should work
"your search"|stats count by alarm_type|eventstats sum(count) as total | eval perc=round((count/total)*100)
That worked! I had to do it without round though because then it only gives back 0's. Thank you!
hi @marenastrauss
Then please accept the answer of @renjith.nair