Alerting

tokens

varsh_6_8_6
Engager

Hi 
I am trying to set up an alert with the following query for the tickets that is not assigned to someone after 10 mins. I wanted the ticket number to get populated in the mail but I am not getting the same rather the mail is without the ticket number.

index="servicenow"  sourcetype=":incident" |where assigned_to = "" | eval age = now() - _time
|where age>600
|table ticket_number, age, assignment_group, team
| lookup team_details.csv team as team OUTPUTNEW alert_email, enable_alert
| where enable_alert = Y
| sendemail to="$alert_email$" subject="Incident no. "$ticket_number$" is not assigned for more than 10 mins - Please take immediate action" message="
Hi Team,
This is to notify you that the ticket: "$ticket_number$" is not assigned for more than 10 mins. Please take necessary action on priority"

Labels (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

You need to use your result tokens, not just some name out of the blue.

https://docs.splunk.com/Documentation/Splunk/latest/Alert/EmailNotificationTokens

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...