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!

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

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

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

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