Splunk Search

How to print a change in value

tech_soul
New Member

Hi all,
Please help me to set an alert when a value change occurred.
Also, I need to print old and new values.

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi tech_soul,
could you share more information about your data?
especially if the value to check is continously logged or it appears only one time in a period.

Anyway, I suppose that the value to check is continously logged, try something like this:

index=my_index earliest=-5m latest=now
| stats dc(check_field) AS check
| where check=1

Bye.
Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi tech_soul,
could you share more information about your data?
especially if the value to check is continously logged or it appears only one time in a period.

Anyway, I suppose that the value to check is continously logged, try something like this:

index=my_index earliest=-5m latest=now
| stats dc(check_field) AS check
| where check=1

Bye.
Giuseppe

Get Updates on the Splunk Community!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...