Installation

Splunk Docker migration is failing

Nagaraju
Observer

Hi Team,

I am working on migrating Splunk standard alone installation to docker images, as part of this I have copied etc and var folder to new server and mounted as volumes into container, I am getting the below error while it is launching the container. I have added a new password as environment variable while running the container. Am I missing anything during the migration?

 

TASK [splunk_standalone : Setup global HEC] ************************************
splunkenterprise_1 | fatal: [localhost]: FAILED! => {
splunkenterprise_1 | "cache_control": "private",
splunkenterprise_1 | "changed": false,
splunkenterprise_1 | "connection": "Close",
splunkenterprise_1 | "content_length": "130",
splunkenterprise_1 | "content_type": "text/xml; charset=UTF-8",
splunkenterprise_1 | "date": "Mon, 19 Apr 2021 09:51:12 GMT",
splunkenterprise_1 | "elapsed": 0,
splunkenterprise_1 | "redirected": false,
splunkenterprise_1 | "server": "Splunkd",
splunkenterprise_1 | "status": 401,
splunkenterprise_1 | "url": "https://127.0.0.1:8089/services/data/inputs/http/http",
splunkenterprise_1 | "vary": "Cookie, Authorization",
splunkenterprise_1 | "www_authenticate": "Basic realm=\"/splunk\"",
splunkenterprise_1 | "x_content_type_options": "nosniff",
splunkenterprise_1 | "x_frame_options": "SAMEORIGIN"
splunkenterprise_1 | }
splunkenterprise_1 |
splunkenterprise_1 | MSG:
splunkenterprise_1 |
splunkenterprise_1 | Status code was 401 and not [200]: HTTP Error 401: Unauthorized
splunkenterprise_1 |
splunkenterprise_1 | PLAY RECAP *********************************************************************
splunkenterprise_1 | localhost : ok=56 changed=2 unreachable=0 failed=1 skipped=58 rescued=0 ignored=0

Labels (2)
0 Karma

aasabatini
Motivator

Hi @Nagaraju 

please check on this page if there is any violation on your migration

https://github.com/splunk/docker-splunk/blob/master/docs/SUPPORT.md#support-violation

Regards

Alessandro

“The answer is out there, Neo, and it’s looking for you, and it will find you if you want it to.”
0 Karma

Nagaraju
Observer

Does this mean splunk doesn't support for issues if we host it in containers?

0 Karma

aasabatini
Motivator

Hi @Nagaraju 

 

if a container on a platform not officially supported by Splunk, yes is not supported.

anyway check on your configuration is all fine follow the github page.
https://github.com/splunk/docker-splunk/tree/master

Or

https://docs.splunk.com/Documentation/Splunk/8.1.3/Installation/DeployandrunSplunkEnterpriseinsideDo...

Alessandro

“The answer is out there, Neo, and it’s looking for you, and it will find you if you want it to.”
0 Karma
Get Updates on the Splunk Community!

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...

[Live Demo] Watch SOC transformation in action with the reimagined Splunk Enterprise ...

Overwhelmed SOC? Splunk ES Has Your Back Tool sprawl, alert fatigue, and endless context switching are making ...

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...