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!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...