Splunk integration with Jenkins

MAC
wget -O splunk-8.2.2-87344edfcdb4-macosx-10.11-intel.dmg 'https://d7wz6hmoaavd0.cloudfront.net/products/splunk/releases/8.2.2/osx/splunk-8.2.2-87344edfcdb4-macosx-10.11-intel.dmg'
  • Create an account and login
  • Click on the + Find More Apps link
  • Search Jenkins and click Install
  • If you go home, you will find this additional option
  • Now, we have to configure the Http Event Collector
  • Go to settings > Data inputs
  • Click on HTTP Event Collector > Global Settings
  • Select All Tokens Enabled, Remove SSL if it’s local, and input custom port (by default it is 8088)
  • Now, we have to generate a new token
  • Enter name for the token (say, Jenkins) and press Next button
  • Select Automatic source type and press Next & Submit button
  • And now, the token is created successfully. Copy the token generated and use it for the communication from Jenkins to the splunk server. You can also find this token from Settings > Data inputs > Http Event Collector
  • Finally press Start Searching button
  • If you have Jenkins installed already, start the Jenkins server; if not, install and start it
MAC
brew services restart jenkins-lts
  • Now, go to the Jenkins Manage Jenkins > Manage Plugins > Available and search for splunk
  • Install Splunk Jenkins plugin
  • Go to Manage Jenkins > Configure System
  • Follow the steps mentioned below, test it, and press the save button
  • Now, restart the Jenkins server
brew services start jenkins-lts
  • And restart the Splunk Server. Go to Settings > Server controls and press Restart Splunk button
  • Now, go to Jenkins, create a Project and execute it
  • Go to Splunk home page and click on the Splunk App for Jenkins tab
  • Select the Jenkins Master and observe results in the result pane

Leave a comment