Splunk App for Jenkins provides deep insights into your Jenkins master and slave infrastructure, job and build details such as console logs, status, artifacts, and an incredibly efficient way to analyze test results. The app provides out-of-the-box dashboards and search capabilities to enable organizations to run a high performing Jenkins cluster and bring operational intelligence into the software development life cycle.
Overview: Visualize multiple masters and associated slaves in a single page. View build status trends and be able to drill down and get details information about any build.
Build Analysis: Easily find any Jenkins build using a variety of easy to use filters. View build summary or drill down to see build status trends, build time and queue time analysis, tests pass/fail trends, test runtime distribution, and console logs couple with Splunk's powerful search interface.
Test Results: If you are a test engineer and spend countless hours looking at test results in Jenkins, you will love this feature. Test Results shows all the failing tests with stack traces, flags regression failures, groups test failures by errors, captures Jenkin's environment variables, and provides nifty filters to find tests with long run times, particular errors, testsuites, etc.
Jenkins Health: Splunk Jenkins Apps captures Jenkins internal JVM information as well as keys metrics like queue size, executors and slaves stats, Jenkins master logs, and Jenkins slave stats. All this information is captured in real-time, allowing you to quickly discover hard to find issues and fix them before they become a bottleneck for development teams. No more ssh-ing into Jenkins systems to find issues.
Jenkins Slaves: Analyze all activity on a particular slave. View builds executed on a slave, view real-time slave logs, build activity across all slaves, and check connection history to find out unstable Jenkins slaves. This feature is extremely helpful in identifying problematic components in a Jenkins cluster and optimizing your team's throughput.
Audit Trail: Audit trail feature allows you to see who has logged into your Jenkins system and done any activity like starting/aborting/changing jobs. You can also see what configs have been changed by some user and can view the config xml directly in Splunk. This feature is particularly useful for organization with security and compliance use cases.
Install on a single instance
1. Download the add-on from Splunkbase.
2. From the Splunk Web home screen, click the gear icon next to Apps.
3. Click Install app from file.
4. Locate the downloaded file and click Upload.
5. Restart Splunk
Install on a search head cluster
Use Splunk Web to deploy it on search headers or use deployer to install it in a search header cluster.
Install on a indexer cluster
copy indexes.conf and props.conf from this App's default folder to $SPLUNK_HOME/etc/master-apps/_cluster/local/ on cluster master, then run "splunk apply cluster-bundle"
Splunk App gets all its data from Splunk's plugin for Jenkins.
The Jenkins plugin can be downloaded directly in the Jenkins update center. The Jenkins plugin can also be manually uploaded by
Splunk plugin for Jenkins - Download
Detailed plugin configuration guide can be found here
The Splunk ITSI Module for Continuous Delivery uses the lifecycle_id field to identify which lifecycle is attached to which event. Extraction of the lifecycle_id field depends on each user scenario and user system data capabilities. Some ideas on how to extract lifecycle_id:
1. Lifecycle from release in project management data collector (JIRA)
EVAL-lifecycle_id = fields.fixVersion Example: "Buttercup 1.5"
2. Lifecycle from release in build system (Bamboo, Jenkins)
REPORT-lifecycle_id = lifecycle_id_from_release Example: "Buttercup 1.5"
3. Lifecycle from feature
EVAL-lifecyle_id = branch Example: "feature/foo"
3. Lifecycle from build/test plan, build/test job:
EVAL-lifecyle_id = build_job_plan Example: "UI_TEST_PLAN"
4. Lifecycle from a specific time range
REPORT-lifecycle_id = lifecycle_id_from_timerange Example: "Plan A from 10-01-2016 to 12-31-2016"
Make sure you configure configure permissions for prop, transforms, eventtypes, tags,etc. properly.
If you don't care about permission on this app at all, suggested metadata:
export = system
- Change default time range for many of the panels.
- Console log truncation and page query parameter.
- Adjust sourceypte for Splunk 6.6
- Support for ingesting code coverage reports from Jenkins
- Bug fixes and improvements
- Added necessary extractions for Splunk ITSI Module for Continuous Delivery
- Improved failed test search for TestNG and Junit result
- Added json:jenkins and json:jenkins:old source types
Splunk's App Certification program uses a specific set of criteria to evaluate the level of quality, usability and security your app offers to its users. In addition, we evaluate the documentation and support you offer to your app's users.
As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 50GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps and add-ons from Splunk, our partners and our community. Find an app or add-on for most any data source and user need, or simply create your own with help from our developer portal.