All Apps and Add-ons

No Records Found in Test Results in Splunk App For Jenkins

tanejaparag
New Member

What could be reason, test results not being populated on Splunk App For Jenkins.

  1. Do i need to write specific function in Jenkins Pipeline to post it to Splunk ?
  2. Is Splunk App for Jenkins not configured correctly for Test Results ?

Test Project do create surefire XML reports.

And also in Search Navbar , i dont see any counts for testCase and testsuite
page_num: 1
testsuite: { [-]
duration: 0
errors: 0
failures: 0
passes: 0
skips: 0
testcase: [ [+]
]
tests: 0
time: 0
total: 0
}

alt text

0 Karma

bandit
Motivator

Doing a cursory review of this app, it looks like it uses macros to define the indexes Splunk will search for the Jenkins data. You may need to adjust these values to match the indexes where you've sent the data to. You can adjust the values under settings --> advanced search --> search macros. Look at the leftmost column Name for the following entries.

[jenkins_statistics_index]
definition = index="jenkins_statistics"

[jenkins_console_index]
definition = index="jenkins_console"

[jenkins_index]
definition = index="jenkins"
0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...