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 Observability for AI

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

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...