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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...