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!

Transforming Financial Data into Fraud Intelligence

Every day, banks and financial companies handle millions of transactions, logins, and customer interactions ...

How to send events & findings from AWS to Splunk using Amazon EventBridge

Amazon EventBridge is a serverless service that uses events to connect application components together, making ...

Exciting News: The AppDynamics Community Joins Splunk!

Hello Splunkers,   I’d like to introduce myself—I’m Ryan, the former AppDynamics Community Manager, and I’m ...