Reporting

Sending out email notifications for different users

Nadhiyaa
Path Finder

how do i send dynamic emails to different users using the rest-api command.

I have a built a dashboard where it shows points for the usage of apps per user .

I need to send out a notification as in email whenever the user reaches certain points . How can i acheive this in splunk where dynamic emails sent to different users only about the invidual user points

0 Karma

gaurav_maniar
Builder

Hi,

To get dynamic email address and send mail you need to use subquery and and get the email id in subquery and return it as 'to' in the main query.
It will be more clear by below example,

index=_internal | head 10 | table _time, _raw
| sendemail [search index=emp_data empID=1234 | fields emp_email | rename emp_email as to] sendcsv=true subject="Test Mail"

Accept and upvote the answer if it helps.

happy splunking...........!

0 Karma

gaurav_maniar
Builder

Hi @Nadhiyaa ,
came across this old post.
If your issue was resolved please accept to mark this question as answered and it will make it more useful for others facing similar issue.

Thanks.

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