All Apps and Add-ons

Splunk App for Jenkins: Why am I getting error "incorrect index or invalid data format" during initial setup?

davebo1896
Communicator

Splunk Enterprise, using a heavy forwarder to collect http.
Getting this error:

WARNING c.s.s.utils.LogConsumer#run: content length:313java.io.IOException: failed to send data,Bad Request
    at com.splunk.splunkjenkins.utils.LogConsumer$1.handleResponse(LogConsumer.java:63)
    at com.splunk.splunkjenkins.utils.LogConsumer$1.handleResponse(LogConsumer.java:43)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:222)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:164)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:139)
    at com.splunk.splunkjenkins.utils.LogConsumer.run(LogConsumer.java:84)
Caused by: com.splunk.splunkjenkins.utils.LogConsumer$SplunkClientError: incorrect index or invalid data format,Bad Request
    at com.splunk.splunkjenkins.utils.LogConsumer$1.handleResponse(LogConsumer.java:61)
    ... 5 more

source=jenkins
host=jenkins-master
index=jenkins_statistics
build_report.index=jenkins
file.index=jenkins_artifact
console_log.index=jenkins_console
jenkins_config.enabled=true

I am getting some data (index=jenkins, sourcetype=_json, source=jenkins)

Any ideas?

1 Solution

davebo1896
Communicator

This was due to a misconfiguration on my part. The HTTP collector had rights to 'jenkins_statistic', not 'jenkins_statistics' . Emphasis on the 's' at the end.

View solution in original post

davebo1896
Communicator

This was due to a misconfiguration on my part. The HTTP collector had rights to 'jenkins_statistic', not 'jenkins_statistics' . Emphasis on the 's' at the end.

chadmedeiros
Path Finder

thanks, this was my problem too 🙂

0 Karma

tlnarayana
Path Finder

will you be able to view Jenkins logs , test case reports in splunk ?

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 ...