Reporting

send email to multiple recipients in splunk

surekhasplunk
Communicator

Hi,

i have an input.csv file which has similar data as follows
Field1(status) - Not completed / Completed
Field2(emailid) - abc@xyz.com

Now for all those records where status="Not completed" i want to send email to all those emailids.
How to achieve this in most simplest way.

Thanks

Tags (2)
0 Karma
1 Solution

p_gurav
Champion

Hi surekhasplunk,

You can try something like this:
| table field1 field2 | where field1="Not completed" | map search="sendemail to="$field2$""

Also command reference is you want to add more option to sendmail:
https://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Sendemail

View solution in original post

0 Karma

p_gurav
Champion

Hi surekhasplunk,

You can try something like this:
| table field1 field2 | where field1="Not completed" | map search="sendemail to="$field2$""

Also command reference is you want to add more option to sendmail:
https://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Sendemail

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...