All Apps and Add-ons

Getting below error when click in Test button on Jenkins server

asifkh11
New Member

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /jenkins/descriptorByName/com.splunk.splunkjenkins.SplunkJenkinsInstallation/testHttpInput.
clicking on this link above shows this below error
URI does not specify a valid host name: http:/services/collector/event

Configs below
splunk host name = ip
Http input port = 8088
Http input token = 7176AE07-BC14-4171-8011-5F6D0FBA7875
SSL not enabled

0 Karma

araza_splunk
Splunk Employee
Splunk Employee

Hi,
Are you using Splunk Cloud ?

0 Karma

txiao_splunk
Splunk Employee
Splunk Employee

From the error message "The proxy server could not handle the request POST /jenkins/descriptorByName/com.splunk.splunkjenkins.SplunkJenkinsInstallation/testHttpInput ", I guess you are running Jenkins behind Proxy, could you check the reverse proxy follow the guide https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+says+my+reverse+proxy+setup+is+broken?
see also
https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache
https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Nginx

0 Karma

asifkh11
New Member

So our setup is splunk enterprise, with distributed cluster 2 sites and Shclustering as well, so the data input has been set on a seperate server we use fro all datainput,

0 Karma

asifkh11
New Member

Araza in metata data just one line when comented out works "#console_log.index=jenkins_console"

source=Jenkins
sourcetype=default-hudson.model.Executor
host=jenkins.availity.com

#custom index, uncomment the settings after index created in splunk
index=airtools
build_report.index=jenkins
file.index=jenkins_artifact
#console_log.index=jenkins_console

#send config content to splunk when user is making changes
jenkins_config.monitoring=true
jenkins_config.enabled=true
0 Karma

asifkh11
New Member

Since this is internal network so no proxy in between
I can test connection and it comes back fine "Splunk connection verified", it only breaks if i comment below line

console_log.index=jenkins_console,

with that line commented out connection works but no data is ingested in splunk

0 Karma

txiao_splunk
Splunk Employee
Splunk Employee

your console log will goto airtools (if the index exists) after "console_log.index=jenkins_console" commented.
You need create index in Splunk manually before update corresponding settings in Jenkins, the Splunk for Jenkins plugin will not create index for you.

Did you get warning message in Splunk such like
Received event for unconfigured/disabled/deleted index=airtools
Received event for unconfigured/disabled/deleted index=jenkins_console

0 Karma

asifkh11
New Member

Looks like it is not even hitting the splunk from Jenkins, so no msgs like above
I did create index=airtools, do i also need to create the 2 index below as well ?
build_report.index=jenkins
console_log.index=jenkins_console

0 Karma

txiao_splunk
Splunk Employee
Splunk Employee

I can see you set default source type to customzed "default-hudson.model.Executor" which may affect console logs, can you try add
console_log.sourcetype=httpevent

0 Karma

txiao_splunk
Splunk Employee
Splunk Employee

Or you can comment sourcetype=default-hudson.model.Executor to let Splunk select source type based on content.

0 Karma

asifkh11
New Member

No error, No msgs for recieved events, none of the Jenkin apps dashboard filing in

0 Karma

txiao_splunk
Splunk Employee
Splunk Employee

you need create index jenkins, jenkins_artifact, jenkins_statistics and jenkins_console, as the App expects a certain metadata format, here is the settings for the app

index=jenkins_statistics
build_report.index=jenkins
file.index=jenkins_artifact
console_log.index=jenkins_console

For more information, please check https://wiki.jenkins-ci.org/display/JENKINS/Splunk+Plugin+for+Jenkins

0 Karma
Get Updates on the Splunk Community!

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...

SignalFlow: What? Why? How?

What is SignalFlow? Splunk Observability Cloud’s analytics engine, SignalFlow, opens up a world of in-depth ...

Federated Search for Amazon S3 | Key Use Cases to Streamline Compliance Workflows

Modern business operations are supported by data compliance. As regulations evolve, organizations must ...