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 Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...