Splunk Extension

A component of Splunk Plugin for Jenkins to support pipeline jobs

Provided steps

  • sendSplunkFile
sendSplunkFile includes: "*.log", sizeLimit: "50MB"

sendSplunkFile

  • sendSplunkConsoleLog

since version 1.9.0, the plugin is able to capture all pipeline log via TaskListenerDecorator

enable-pipeline-log

sendSplunkConsoleLog step is only required when the global option is not checked

// 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'
            }
        }
    }
}

Change Log

Located in the CHANGELOG.md