Deployment Architecture

Count filed value variation pet host per day

Ed_Alias
Path Finder

Hello,

I need to report antivirus daily update on servers,

i have an hourly logging of each "Endpoint" with version number.

How can i count field value variation for each day and each "Endpoint" ?

Tags (1)
0 Karma

sduchene_splunk
Splunk Employee
Splunk Employee

It would be great if you could provide an example,
if you want the value VARIATION during the day, maybe you want the first and last of each day and calculate a variation. this would be

xxx |bucket _time span=1d|stats first(version) as first, last(version) as last by _time, endpoint|eval variation=last-first

OR do a simple delta between the last value of each day :

xx|bucket _time span=1d|stats last(version) as last by _time, endpoint|delta last as variation

Also for variation, streamstats could be your friend. And lastly : check delta blogpost
Does it help ?

renjith_nair
Legend

In general, you can do this by

<your basic search> |bucket _time span=1d |stats count by version_number,endpoint,_time

This will give you the count of different version numbers per day per host

If you want to do it in any specific way, please provide more details (sample events,fields etc)

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...