Dashboards & Visualizations

Splunk Jenkins app dashboard not fetching console logs of pipeline jobs

rakesh635
Engager

Have configured splunk plugin in jenkins and have installed jenkins app for splunk. Everything seems to be working, except, jenkins_console index is not receiving console logs of pipeline jobs.
Can anyone guide me how to make this work.

Tags (1)
0 Karma
1 Solution

rakesh635
Engager

I figured out and it can be done, doing some modifications in pipeline script,

scripted pipeline

sendSplunkConsoleLog {
node{
sh "echo testjob";
}
}

declarative pipeline

pipeline {
agent any
options {
timeout(time: 1, unit: 'HOURS')
sendSplunkConsoleLog()
}
stages {
stage('Example') {
steps {
echo 'Hello World'
}
}
}
}

View solution in original post

0 Karma

rakesh635
Engager

I figured out and it can be done, doing some modifications in pipeline script,

scripted pipeline

sendSplunkConsoleLog {
node{
sh "echo testjob";
}
}

declarative pipeline

pipeline {
agent any
options {
timeout(time: 1, unit: 'HOURS')
sendSplunkConsoleLog()
}
stages {
stage('Example') {
steps {
echo 'Hello World'
}
}
}
}

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...