Reporting

Dynamic Email Address Selection in Email Alerts for a single search query.

yashjain12yj
New Member

I want to send email to multiple people based on some condition I want to change the recipient when some alert is triggered.
Can anyone have any idea how to achieve this?

0 Karma

HiroshiSatoh
Champion

I think that it is better to embed an email address in an alert query instead of an alert setting.

alert setting
$results.your_email_addr$

0 Karma

yashjain12yj
New Member

I need to extract email address from a file. Then I want to send email to that users.

0 Karma

HiroshiSatoh
Champion

Use LOOKUP as a general method.
Can not make the file a LOOKUP file?

0 Karma

yashjain12yj
New Member

Is there any other way than using lookup?

0 Karma

HiroshiSatoh
Champion

Although it is possible to index a file as a log and join it, it is not much different from using LOOKUP.

After that, I think that you can do anything by creating a custom command, but I can not recommend it.

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

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