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.
I figured out and it can be done, doing some modifications in pipeline script,
sendSplunkConsoleLog {
node{
sh "echo testjob";
}
}
pipeline {
agent any
options {
timeout(time: 1, unit: 'HOURS')
sendSplunkConsoleLog()
}
stages {
stage('Example') {
steps {
echo 'Hello World'
}
}
}
}
I figured out and it can be done, doing some modifications in pipeline script,
sendSplunkConsoleLog {
node{
sh "echo testjob";
}
}
pipeline {
agent any
options {
timeout(time: 1, unit: 'HOURS')
sendSplunkConsoleLog()
}
stages {
stage('Example') {
steps {
echo 'Hello World'
}
}
}
}