Splunk Search

How to extract the email_id from my sample event, then use the sendemail command to send the event to the extracted email?

rajeshbikram
New Member

Hi,

I have events as below,

2016-06-29 16:05:13,994 ERROR host=localhost service=check_process state=alert description=Response code from jolokia is not 200. metric=500.0  time=1.467241513994E9 email_id=a@b.com,c@d.com role=node actor_name=test environment=dev

What is the best way to extract email_id and use sendemail to send email with event.

0 Karma

sundareshr
Legend

@MuS has the best answer, I have seen to a similar/related question

https://answers.splunk.com/answers/213340/how-to-get-splunk-sendemail-command-to-send-multip.html

Get Updates on the Splunk Community!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

New Release | Splunk Cloud Platform 10.1.2507

Hello Splunk Community!We are thrilled to announce the General Availability of Splunk Cloud Platform 10.1.2507 ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...