Installation

Remove port from Splunk alert URLS WITHOUT changing actual web port

MattH665
Engager

Hi,

We have Splunk running behind a load balancer so we reach it on the standard port 443.

But on the backend it's using a different port, which the LB connects to, hence this port needs to stay set as the Web port.

Problem is when we get alerts, Splunk still puts that port from the Web port setting in the url. So the url doesn't work and we need to manually edit it to remove the port.

Is there no separate setting for this so that the actual listening port and the port it puts in the url can be controlled separately? 

 

Labels (1)
Tags (3)
0 Karma
1 Solution

danielcj
Communicator

Hello @MattH665 ,

I believe that you are looking for the setting:

hostname = <your_hostname> in alert_actions.conf  - https://docs.splunk.com/Documentation/Splunk/latest/Admin/Alertactionsconf#GLOBAL_SETTINGS

examples: http://splunkserver:8000, https://splunkserver.example.com:443

Remember to restart your instance after the changes.

Thanks. 

View solution in original post

danielcj
Communicator

Hello @MattH665 ,

I believe that you are looking for the setting:

hostname = <your_hostname> in alert_actions.conf  - https://docs.splunk.com/Documentation/Splunk/latest/Admin/Alertactionsconf#GLOBAL_SETTINGS

examples: http://splunkserver:8000, https://splunkserver.example.com:443

Remember to restart your instance after the changes.

Thanks. 

MattH665
Engager

Thanks @danielcj , think this is exactly what I needed. Somehow I never came across this when googling and searching around here.

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...