<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk fetching node as jenkins master, instead of actual slave for pipeline job builds. why? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334540#M164409</link>
    <description>&lt;P&gt;the pipeline itself (groovy code of Jenkinsfile) is always ran on master, the node step and steps inside node closure can run on agent nodes. plugin 1.7.1 version added exec_node info to track the node step execution info &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=jenkins_statistics "stages{}.children{}.exec_node"=X
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 19 Dec 2018 15:59:06 GMT</pubDate>
    <dc:creator>txiao_splunk</dc:creator>
    <dc:date>2018-12-19T15:59:06Z</dc:date>
    <item>
      <title>Splunk fetching node as jenkins master, instead of actual slave for pipeline job builds. why?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334537#M164406</link>
      <description>&lt;P&gt;I am using jenkins's splunk plugin version 1.6.3(latest). I have configured no executor in master, so no possibility for jobs to build in master. Have only one node configured and jobs needs to be running in that node only. From console log, i can see its running in slave node, but in splunk index, i could see its node value is master.&lt;BR /&gt;
This case is only for pipeline jobs, but not for freestyle jobs.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 07:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334537#M164406</guid>
      <dc:creator>rakesh635</dc:creator>
      <dc:date>2017-12-12T07:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk fetching node as jenkins master, instead of actual slave for pipeline job builds. why?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334538#M164407</link>
      <description>&lt;P&gt;Did you get anywhere with this? We are experiencing the same issue and trying to integrate splunk with our pipeline builds?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 11:44:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334538#M164407</guid>
      <dc:creator>philsegal</dc:creator>
      <dc:date>2018-09-21T11:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk fetching node as jenkins master, instead of actual slave for pipeline job builds. why?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334539#M164408</link>
      <description>&lt;P&gt;we are having exactly the same issue where pipeline builds are accredited to the master despite running on multiple slaves. basically when I go to the "Jenkins slaves" section and look at Build Distribution across Slaves, all builds appear as running on the master which is not correct.&lt;BR /&gt;
@txiao_splunk do you have any suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 14:07:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334539#M164408</guid>
      <dc:creator>neluvasilica</dc:creator>
      <dc:date>2018-12-19T14:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk fetching node as jenkins master, instead of actual slave for pipeline job builds. why?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334540#M164409</link>
      <description>&lt;P&gt;the pipeline itself (groovy code of Jenkinsfile) is always ran on master, the node step and steps inside node closure can run on agent nodes. plugin 1.7.1 version added exec_node info to track the node step execution info &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=jenkins_statistics "stages{}.children{}.exec_node"=X
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Dec 2018 15:59:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334540#M164409</guid>
      <dc:creator>txiao_splunk</dc:creator>
      <dc:date>2018-12-19T15:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk fetching node as jenkins master, instead of actual slave for pipeline job builds. why?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334541#M164410</link>
      <description>&lt;P&gt;app for jenkins 1.0.8 changed wording slaves to nodes and updated the agent build history tab to include &lt;CODE&gt;node step&lt;/CODE&gt; execution (require plugin 1.7.1), but unfortunately no change for "Build Distribution" stats&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 16:14:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334541#M164410</guid>
      <dc:creator>txiao_splunk</dc:creator>
      <dc:date>2018-12-19T16:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk fetching node as jenkins master, instead of actual slave for pipeline job builds. why?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334542#M164411</link>
      <description>&lt;P&gt;agree with the fact that pipeline is run on master but, as we mentioned, we are interested in information about node steps execution information as well. reason for this is we want to find out if our Jenkins agents are being over/under-utilized and I didn't seem to find a way of displaying that information in the Splunk app for the pipeline builds.&lt;BR /&gt;
silly question, the X in your query should be replaced by the master's hostname? are there quotes required?&lt;BR /&gt;
just ran the query for one of the hosts and no results unfortunately.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 16:58:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334542#M164411</guid>
      <dc:creator>neluvasilica</dc:creator>
      <dc:date>2018-12-19T16:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk fetching node as jenkins master, instead of actual slave for pipeline job builds. why?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334543#M164412</link>
      <description>&lt;P&gt;"stages{}.children{}.exec_node"=X  where X is agent node name, where the node step got executed. It is added in jenkins plugin 1.7.1 released at Dec 7, 2018.&lt;BR /&gt;
If you have latest app, the "Build History" tab of agent will include the "stages{}.children{}.exec_node" info. the underlaying spl used is &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=jenkins_statistics host="FQDN-OF-JENKIS-MASTER" event_tag=job_event ( node="JENKINS-AGENT-NAME" OR "stages{}.children{}.exec_node"="JENKINS-AGENT-NAME" )| dedup build_url sortby -_time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:26:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334543#M164412</guid>
      <dc:creator>txiao_splunk</dc:creator>
      <dc:date>2020-09-29T22:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk fetching node as jenkins master, instead of actual slave for pipeline job builds. why?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334544#M164413</link>
      <description>&lt;P&gt;thank you, the spl works. is there a way of displaying the "number of builds" across multiple nodes/slaves over a specific period of time when using pipelines? something similar to visualizing "Build Distribution across Slaves" when for non-pipeline builds?&lt;BR /&gt;
this would be very helpful in identifying if the number of nodes is over or under provisioned.&lt;BR /&gt;
in other words, the "build history" in v1.7.1 is fine for individual nodes but is there a way of visualizing the builds history for all nodes connected to a pipelined master?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 09:06:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334544#M164413</guid>
      <dc:creator>neluvasilica</dc:creator>
      <dc:date>2019-01-15T09:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk fetching node as jenkins master, instead of actual slave for pipeline job builds. why?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334545#M164414</link>
      <description>&lt;P&gt;@txiao_splunk are you aware of a way of achieving what I have described in my last comment? can I achieve this via a custom dashboard?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 16:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334545#M164414</guid>
      <dc:creator>neluvasilica</dc:creator>
      <dc:date>2019-01-28T16:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk fetching node as jenkins master, instead of actual slave for pipeline job builds. why?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334546#M164415</link>
      <description>&lt;P&gt;of course you can use custom dashboard, you could try run the sample  spl&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=jenkins_statistics host="FQDN-OF-JENKIS-MASTER" event_tag=job_event type=started ( node="JENKINS-AGENT-NAME" OR "stages{}.children{}.exec_node"="JENKINS-AGENT-NAME" )
| rename "stages{}.children{}.exec_node" as exec_node
| eval build_on_node=coalesce(exec_node, node)
| timechart count by build_on_node
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then "Save as Report".  You can also create a custom dashboard with node filter and time filter, please checkout the free book &lt;A href="https://www.splunk.com/goto/book"&gt;https://www.splunk.com/goto/book&lt;/A&gt;  and dashboard doc &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Viz/WebFramework"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Viz/WebFramework&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 05:32:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334546#M164415</guid>
      <dc:creator>txiao_splunk</dc:creator>
      <dc:date>2019-01-29T05:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk fetching node as jenkins master, instead of actual slave for pipeline job builds. why?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334547#M164416</link>
      <description>&lt;P&gt;thank you. that is very useful. So in my syntax:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    index=jenkins_statistics host="FQDN-OF-JENKINS_MASTER" event_tag=job_event  
| rename "stages{}.children{}.exec_node" as exec_node 
| eval build_on_node=coalesce(exec_node, node)  
| chart count by build_on_node useother=f 
| sort -count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can see my jenkins slaves and the "count". However I am not too sure what "count"represents in this case. The number is quite high. For instance there are 60 events and 19420 for "count".Is there a way to display the number of builds in the count field instead of that high number which I am not sure what it represents?&lt;BR /&gt;
appreciate your help.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 14:57:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334547#M164416</guid>
      <dc:creator>neluvasilica</dc:creator>
      <dc:date>2019-01-29T14:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk fetching node as jenkins master, instead of actual slave for pipeline job builds. why?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334548#M164417</link>
      <description>&lt;P&gt;I think it counted pipeline steps, maybe we can try mvdedup, e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=jenkins_statistics host="FQDN-OF-JENKINS_MASTER" event_tag=job_event type=completed
 | rename "stages{}.children{}.exec_node" as pipeline_nodes
 | eval exec_nodes=mvdedup(pipeline_nodes)
 | eval build_on_node=coalesce(exec_nodes, node)  
 | chart count by build_on_node useother=f 
 | sort -count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Jan 2019 15:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334548#M164417</guid>
      <dc:creator>txiao_splunk</dc:creator>
      <dc:date>2019-01-29T15:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk fetching node as jenkins master, instead of actual slave for pipeline job builds. why?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334549#M164418</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/192618"&gt;@txiao_splunk&lt;/a&gt; I have a strange case where for a Jenkins master stages are still attributed to the master instead of the slaves they are running on. Version of Jenkins and Splunk plugins(including the Extension plugin) are exactly the same on 10 masters, 9 of them correctly attribute the stages to the nodes they're running on but one doesn't. The builds structure is more or less the same so I don't think that can be the issue. The build's console definitely  has entries like: Running on "hostname bla" but when I check splunk, stages{}.children{}.exec_node is always attributed to the master. Any idea of what can be wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:29:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334549#M164418</guid>
      <dc:creator>neluvasilica</dc:creator>
      <dc:date>2020-09-30T03:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk fetching node as jenkins master, instead of actual slave for pipeline job builds. why?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334550#M164419</link>
      <description>&lt;P&gt;Could you kindly check pipline related plugins (such as workflow-job, workflow-support)  versions to make sure they are consistent with other masters&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2019 03:48:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334550#M164419</guid>
      <dc:creator>txiao_splunk</dc:creator>
      <dc:date>2019-12-31T03:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk fetching node as jenkins master, instead of actual slave for pipeline job builds. why?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334551#M164420</link>
      <description>&lt;P&gt;workflow related plugins(workflow-job, support, cps) seem to be exactly the same on all masters. &lt;BR /&gt;
workflow-job:&lt;BR /&gt;
Plugin-Version: 2.35&lt;BR /&gt;
Hudson-Version: 2.138.4&lt;BR /&gt;
Jenkins-Version: 2.138.4&lt;BR /&gt;
Plugin-Dependencies: workflow-api:2.36,workflow-step-api:2.20,workflow&lt;BR /&gt;
 -support:3.3&lt;BR /&gt;
workflow-cps:&lt;BR /&gt;
Plugin-Version: 2.74&lt;BR /&gt;
Hudson-Version: 2.138.4&lt;BR /&gt;
Jenkins-Version: 2.138.4&lt;BR /&gt;
Plugin-Dependencies: workflow-api:2.36,workflow-scm-step:2.4,workflow-&lt;BR /&gt;
 step-api:2.20,workflow-support:3.3,scm-api:2.2.6,script-security:1.62&lt;BR /&gt;
 ,structs:1.20,support-core:2.43;resolution:=optional,ace-editor:1.0.1&lt;BR /&gt;
 ,jquery-detached:1.2.1&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2019 12:04:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-fetching-node-as-jenkins-master-instead-of-actual-slave/m-p/334551#M164420</guid>
      <dc:creator>neluvasilica</dc:creator>
      <dc:date>2019-12-31T12:04:13Z</dc:date>
    </item>
  </channel>
</rss>

