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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

A Four-Part Event Series: Full Stack Observability For the AI Era

As AI reshapes applications, infrastructure, and the way teams operate, the traditional boundaries of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...