Splunk Search

ignore a line in splunk payload if a variable is null

guru333
Engager

Hi,

I want to ignore below line inside splunk alerts payload if email address is not provided buy user.

"action.email.to": {email},

 

What is best way to do this and if /else statement inside payload throws syntax error.

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Please provide more detail as to what exactly you are doing; your current description is too vague to determine how to advise you.

0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...