Splunk Cloud Platform

I have issues in setting up splunk with for docker

naveenhm
New Member

I have created my account on splunk(cloud) and I have created token. When I am trying to push logs to splunk  I am running into below error. Please help

 

PROMPT>

```
docker run --publish 80:80 --log-driver=splunk --log-opt splunk-token=<MyTokenHere> --log-opt splunk-url=https://prd-p-9140a.splunkcloud.com --log-opt splunk-insecureskipverify=true --log-opt splunk-sourcetype=docker-test --log-opt splunk-index=main nginx
```

----------| ERROR |----------

docker run --publish 80:80 --log-driver=splunk --log-opt splunk-token=75d04357-00c3-4f87-b3f7-4d1169b2b757 --log-opt splunk-url=https://prd-p-9140a.splunkcloud.com --log-opt splunk-insecureskipverify=true --log-opt splunk-sourcetype=docker-test --log-opt splunk-index=main nginx

docker: Error response from daemon: failed to initialize logging driver: splunk: failed to verify connection - 404 Not Found - <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
This is a static HTML string template to render errors. To edit this
template, see appserver/mrsparkle/lib/error.py.
-->
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:splunk="http://www.splunk.com/xhtml-extensions/1.0" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="referrer" content="never" />
<meta name="referrer" content="no-referrer" />
<link rel="shortcut icon" href="/en-US/static/@7947EF3EB0C8EDFF887EFA69E21E6263479009821EE94F07A47FD3FB0E57B541/img/favicon.ico" />
<title>Page not found! - Splunk</title>
<style>
@font-face {
font-family: "Splunk Sans";
src: url('/static/fonts/proxima-regular-webfont.woff') format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "Splunk Mono";
src.

 

Please help

0 Karma
Get Updates on the Splunk Community!

Index This | What did the zero say to the eight?

June 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

Splunk Observability Cloud's AI Assistant in Action Series: Onboarding New Hires & ...

This is the fifth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Now Playing: Splunk Education Summer Learning Premieres

It’s premiere season, and Splunk Education is rolling out new releases you won’t want to miss. Whether you’re ...