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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...