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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...