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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...