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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...