Security

Is it possible to configure Splunk to support HTTP Strict Transport Security (HSTS)?

amoldesai
Explorer

Hi,

We have a requirement from our security team to have Splunk support HSTS feature. Can this be done?

I have seen configuration for other servers like Apache 2 at https://raymii.org/s/tutorials/HTTP_Strict_Transport_Security_for_Apache_NGINX_and_Lighttpd.html

How can we configure Splunk server to support it?

Please let me know.

Thanks,

-Amol

Labels (1)

AllenMaria
Observer

By default, Splunk does not enable HSTS automatically. However, you can add the HSTS header manually by configuring a reverse proxy (like NGINX or Apache) in front of your Splunk web interface. The proxy can handle HTTPS and send the HSTS response header to clients. This setup helps meet security requirements while keeping Splunk accessible and secure. 

0 Karma

haraksin
Communicator

In case anyone else is wondering the answer to this question, there is now a way to do this deployment-wide as of version 4.*

Set the following flag globally in $SPLUNK_HOME/etc/system/local/web.conf (under [settings] stanza) and in $SPLUNK_HOME/etc/system/local/server.conf (in [default] stanza):

sendStrictTransportSecurityHeader = true

Jeremiah
Motivator

If you want to add custom headers to Splunk, your best bet is probably to front-end Splunk with Apache or Nginx. Also note that if you enable SSL on Splunkweb, there is no non-ssl port.

https://answers.splunk.com/answers/5465/how-to-access-splunk-web-interface-behind-nginx.html

0 Karma
Get Updates on the Splunk Community!

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...