Splunk Search

How to spot any changes to the value of a field

ByteKnight101
New Member

Hello,

I have an index where data is ingested once a week. Objective of ingesting this data is to identify if there is any change to a field value from last week to current. I need help writing a SPL that can help me detect the change if there is one.

For more context here's an example, The relevant fields are:

Role

Entitlement

 

I need to find out if there has been any change to the entitlements to that role between data ingested on this Saturday and the past. Any help would be appreciated.

Thanks

 

 

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Depending on your data (which it would have been useful for you to share), you might be able to count the occurrences of each entitlement for each role for last Saturday and the previous Saturday, and where the count in not 2, there has been a change.

0 Karma
Get Updates on the Splunk Community!

Fall Into Learning with New Splunk Education Courses

Every month, Splunk Education releases new courses to help you branch out, strengthen your data science roots, ...

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...