Splunk Search

How to Compare two fields from one search with alerting and variable?

CMEOGNAD
Engager

Hello Community,

i get all 24h a version REST call.
How to get a alert mail with the new version (like 2023-09) as text in the message body, when a new different version appears like...
Line 1: 2023-09
Line 2: 2023-08

index="my_index" source="/var/log/my_version"
| head 2
| spath version

CMEOGNAD_0-1692608641928.png

Regards - Markus

 



Labels (1)
0 Karma

CMEOGNAD
Engager
Looks plausible. I ll test it, and get feedback to you in a month !
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
index="my_index" source="/var/log/my_version"
| head 2
| spath version
| streamstats current=f window=2 last(version) as previous_version
| where version != previous_version
0 Karma
Get Updates on the Splunk Community!

Edge Processor | New Resiliency Improvements & Support for Additional Data Sources

We are excited to announce several exciting updates for Edge Processor aimed at hardening overall product ...

Splunk Certification Support Alert | Pearson VUE Outage

Splunk Certification holders and candidates!  Please be advised of an upcoming system maintenance period for ...

Enterprise Security Content Update (ESCU) | New Releases

In September, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...