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

How to calculate the daily change of a field value

$
0
0
Hi Splunkers, I need to calculate the daily value change of a field, and report on the daily difference. The field is just an event counter, that gets increased every time the event is triggered. Events come in at no particular frequency. Example Data: 20151231-235955 foo bar 211 20160101-000304 foo bar 212 20160101-000402 foo baz 213 20160101-020543 foo bar 213 ..... 20160101-235812 foo baz 278 20160102-000919 foo bar 278 Now I need to create a table (timechart, whatever) of the daily changes of the counter. For Jan, 01 2016 it should read 67 (211 as last count of the previous day, 278 as last event of the actual day). I am not sure how to do this. I already tried using `streamstats` and counting the changes of the field, but I don't know how to reset the streamstats value each day. Can someone point me in the right direction? Thanks!

Viewing all articles
Browse latest Browse all 47296

Trending Articles