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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...