[JIRA] (JENKINS-56118) Splunk plugin not sending all console to Splunk

2 views
Skip to first unread message

romain.dupont@gmail.com (JIRA)

unread,
Feb 13, 2019, 3:06:03 AM2/13/19
to jenkinsc...@googlegroups.com
Romain Dupont created an issue
 
Jenkins / Bug JENKINS-56118
Splunk plugin not sending all console to Splunk
Issue Type: Bug Bug
Assignee: Ted
Components: splunk-devops-plugin
Created: 2019-02-13 08:05
Environment: Jenkins ver. 2.150.1
Splunk plugin 1.7.1
Priority: Minor Minor
Reporter: Romain Dupont

in pipeline mode, the output of echo commands are not captured by Splunk.

Example job:
node('centos-small') {
  sendSplunkConsoleLog {
    stage('stage 1') {
      echo "toto"
{{    }}}
    stage('stage 2') {
      sh "echo titi"
{{    }}}
{{  }}}
}

Jenkins console output:
[Pipeline] node
Running on WE1-P1-ALMT-TDF-aes-08dwq in /home/jenkins/workspace/Personal/dupor0/test-splunk
[Pipeline] {
[Pipeline] sendSplunkConsoleLog
[Pipeline] {
[Pipeline] stage
[Pipeline]

{ (stage 1) [Pipeline] echo toto [Pipeline] }

[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (stage 2)
[Pipeline] sh
+ echo titi
titi
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // sendSplunkConsoleLog
[Pipeline] }
[Pipeline] // node
Splunk query:

index=jenkins_console host="jenkins-aes.bpweb.bp.com" source="job/Personal/job/dupor0/job/test-splunk/5/console"|reverse| rename _raw as Event| table _time, Event

Returned by splunk:

_time Event
2019-02-13 08:01:18.259 2019-02-13T08:01:18.259+0000 + echo titi
2019-02-13 08:01:18.259 2019-02-13T08:01:18.259+0000 titi

The output from Stage 1 is missing. And from what I've noticed, the output from echo commands is never captured.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

xiao.xj@outlook.com (JIRA)

unread,
Apr 24, 2020, 4:14:03 AM4/24/20
to jenkinsc...@googlegroups.com
Ted Xiao commented on Bug JENKINS-56118
 
Re: Splunk plugin not sending all console to Splunk

can you try latest 1.9.2 which can send pipeline jobs without sendSplunkConsoleLog step if global option is checked in configure page

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages