Alerting

How to create email line break for an alert

csheldon3636
New Member

Hello,

We have an alert that sends out a notification to a user via email when they have a vulnerability. The email contains the CVE and the action to resolve it. The issue is that it is putting that all on one line and not listing them. I have googled this problem and checked with Splunk knowledgebase and have not found a solution.

Thanks,

Curt

================= Example ====================
Hello xxxxxx

The following vulnerabilities were detected on your system.Please review the following details:

result.Vulnerability_CVE-2019-13449=Upgrade to Zoom version 4.4.53582.0519,result.Vulnerability_CVE-2019-13450=Upgrade to Zoom version 4.4.53932.0709

If you are unable to update your system please contact support.

To confirm validity of this email please feel free to contact xxxxxxxxx

0 Karma

_smp_
Builder

I had a list of user IDs in a multi-value field. I wanted to send that list of IDs in the body of an email message with each ID separated by a newline. I was able to achieve this in Splunk Cloud 8.1.2008 by appending a newline string ("\n") to each user ID in the multi-value field like this:

USERID
user1\n
user2\n
user3\n
user4\n

Then I just inserted the token $result.USERID$ in the body of the email. The newline characters are included in the search result, but they are converted to newlines in the body of the email.

Get Updates on the Splunk Community!

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...

Splunkbase | Splunk Dashboard Examples App for SimpleXML End of Life

The Splunk Dashboard Examples App for SimpleXML will reach end of support on Dec 19, 2024, after which no new ...

Understanding Generative AI Techniques and Their Application in Cybersecurity

Watch On-Demand Artificial intelligence is the talk of the town nowadays, with industries of all kinds ...