- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
math operations between events
cl3513
New Member
07-09-2021
11:47 AM
I am using snmp to poll interface stats from a device, which is only returning total packets received on interface, I am polling every 60 seconds. Is there any way in dashboard to take the difference between those values and then divide by 60t to get packets per second and display this value in dashboard? (<event1 value> - event2 value>)/60. Dashboard would need to do this for each event coming in.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

richgalloway

SplunkTrust
07-09-2021
12:47 PM
The streamstats command can give you the difference of a field between events. Then use eval to do the division.
... | streamstats window=2 range(foo) as diff
| eval diff=diff/60
---
If this reply helps you, Karma would be appreciated.
If this reply helps you, Karma would be appreciated.
