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!

Reduce and Transform Your Firewall Data with Splunk Data Management

Managing high-volume firewall data has always been a challenge. Noisy events and verbose traffic logs often ...

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...