Alerting

Alert filter

danielrichards
Explorer

Hi all,

What would be a simply approach to creating an alert based on the following log data:

The objective is to send an alert if the "Return Code" does not equal the number "1"

# Reporting Started #
#####################
# Processing task 1
# Processing task 2
# Processing task 3
#####################
# Return Code 1

TIA

 

 

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| rex "Return Code (?<returncode>\d+)"
| where isnotnull(returncode) AND returncode!=1

Create an alert based on there being more than 0 results

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| rex "Return Code (?<returncode>\d+)"
| where isnotnull(returncode) AND returncode!=1

Create an alert based on there being more than 0 results

Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...