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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...