All Apps and Add-ons

How do I send off all the Jenkins console output into Splunk via Splunk plugin for Jenkins

rawlingssam
Explorer

Hi,

Have installed and configured splunk plugin for Jenkins together with Splunk App for Jenkins. So far everything seem to be working but I'm not getting the complete console logs in Splunk. I'm I missing something in the plugin config or can someone point me towards the right direction?

NOTE: Have setup the below custom metadata config but it doesn't work:

Data Source: Console Log
Config item: Source Type
Value: json:jenkins_audit:old

rawlingssam
Explorer

Hi txiao,

I am very keen on the use of "sendSplunkConsoleLog" in pipeline script. Can you please provide documentation covering the use of this object as I can't find it on the wiki page (https://wiki.jenkins-ci.org/display/JENKINS/Splunk+Plugin+for+Pipeline+Job+Support). We are in a situation where not all pipeline build console logs are moving to splunk. Can you please investigate this for us? thanks

0 Karma

txiao_splunk
Splunk Employee
Splunk Employee

can you share more info about "not getting the complete console logs in Splunk"? Some job console logs didn't show up at all or the app truncated some logs?

1) For Pipeline job, sendSplunkConsoleLog need to be invoked in pipeline script, see also https://wiki.jenkins-ci.org/display/JENKINS/Splunk+Plugin+for+Pipeline+Job+Support
2) The app shows 10000 lines for each build, to workaround this, please filter log text so you can get a smaller result set.

0 Karma

sachinbansal
New Member

Hi @txiao_splunk ,
I have tried that but i am not whole console output on splunk. We are printing some details which can be seen in jenkins console output but it is not available on splunk .

Thanks.

0 Karma

rawlingssam
Explorer

Hi Txiao,

Can you please provide documentation covering the use of - sendSplunkConsoleLog - in pipeline script. Had a look at the wiki-page: https://wiki.jenkins-ci.org/display/JENKINS/Splunk+Plugin+for+Pipeline+Job+Support but couldn't find anything related to sendSplunkConsoleLog. We are in a situation where not all pipeline build console logs are moving across to Splunk. Can you please investigate this for us? Thanks

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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