Security

Splunk scheduled report 'Email when done' option sends me a link with a private IP that I cannot open.

moizmmz
Path Finder

Hello,

I created a scheduled report in Splunk to send me an email with a link to the report and its results. However, in the email, the link returned is through a private IP address. Which is why it doesn't open. I understand that this is because the IP address belongs to one of my search heads which sits in a private network. But is there a way I can get the results on a public IP and send that link to my email instead, so I can view it?

I'm a little stumped here. Thanks.

Tags (1)
0 Karma

burwell
SplunkTrust
SplunkTrust

Hello. We have our Splunk heads in a cluster behind a load balancer.

I create /opt/splunk/etc/system/local/alert_actions.conf with the following. This way the link that is sent out is to our cluster, not an individual head. Also it is handy to have the link for people to click on to see.

[email]
from = splunk@mydomain.com
mailserver = mymailserver:25
hostname = http://myloadbalancer:myport

0 Karma

manekar
New Member

no luck. I am not seeing any errors under python.log.

Thanks,

0 Karma

petom
Path Finder

Have you restarted Splunk after applying the configuration?
It should work as @burwell wrote it.

0 Karma

manekar
New Member

Yes i restarted it.

Thanks,
Swathi

0 Karma

manekar
New Member

hostname=indexhostname.

Please let me is it correct ?

0 Karma

burwell
SplunkTrust
SplunkTrust

Sorry I just saw your question @manekar

As to what the hostname is for

https://docs.splunk.com/Documentation/Splunk/7.2.4/Admin/Alertactionsconf

Sets the hostname used in the web link (url) sent in alerts.

So you would put the search head server name. Can you try that?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Why not have the results included in the email instead of a link?

---
If this reply helps you, Karma would be appreciated.
0 Karma

moizmmz
Path Finder

Good question 😛 Well, my manager sees that there is a problem and he expects me to fix it. There are other solutions, but I guess he just prefers this one 😛

0 Karma

moizmmz
Path Finder

Thank you though 🙂

0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...