Splunk Enterprise Security

Calculate Percentage of Packets

abhik1501
New Member

So i have a splunk query that returns the below output

IP Packets
1.1.1.1 100
1.1.1.2 200
400
200
1.1.1.3 100
100
100
200
400
200
200
400
But i want to know what is the percentage of each packet size per IP

0 Karma

Sukisen1981
Champion

What is the desired output?
for ip 1.1.1.1 its 100/100=100%
and for 1.1.1.2 for the first row it is 200/800=25%?

0 Karma
Get Updates on the Splunk Community!

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...