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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...