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!

Uncovering Multi-Account Fraud with Splunk Banking Analytics

Last month, I met with a Senior Fraud Analyst at a nationally recognized bank to discuss their recent success ...

Secure Your Future: A Deep Dive into the Compliance and Security Enhancements for the ...

What has been announced?  In the blog, “Preparing your Splunk Environment for OpensSSL3,”we announced the ...

New This Month in Splunk Observability Cloud - Synthetic Monitoring updates, UI ...

This month, we’re delivering several platform, infrastructure, application and digital experience monitoring ...