Alerting

How to format alerts email message in alert search, and split the message over multiple lines

edwinmae
Path Finder

Hi,

I use the following in the Alert Search to get the Email Message (body) in the Splunk Results output:

| eval Alert_Message= "Text A, Text B, Text C"
| table Alert_Message ...

It shows the Message in the Splunk Results output in 'One single line' > Text A, Text B, Text C

**

Is it possible to get the Splunk Results output, e.g. in 3 Lines?
Text A
Text B
Text C

0 Karma

edwinmae
Path Finder

I actually solved it myself, by adding a star after each line, and using | makemv delim="*" Alert_Message

0 Karma

aberkow
Builder

You can also use the mvexpand command here: https://docs.splunk.com/Documentation/Splunk/8.0.0/SearchReference/Mvexpand. You should post/accept an answer or close the question to mark it as resolved!

0 Karma
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 ...