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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...