<?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: union not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-union-not-working/m-p/602056#M209550</link>
    <description>&lt;P&gt;Try your where command like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where isnotnull(releaseName) AND PipelineName like "%Production"&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 16 Jun 2022 11:38:56 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-06-16T11:38:56Z</dc:date>
    <item>
      <title>Help with union not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-union-not-working/m-p/602032#M209543</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I'm running this query:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| union 
    [ search host="puppet-01" OR host="jenkins-01" OR host="ANSIBLE-01" sourcetype=ProductionDeploy  NOT Permisson_Job_Name=*_permission Environment=PRODUCTION 
    | table _time, App_Name, User, Change_Log_Description, Environment, Version] 
    [ search sourcetype=mscs:storage:blob:json 
    | rex field=_raw "Details\":\"(?&amp;lt;Details&amp;gt;.*?)\"," 
    | rex field=_raw "ProjectName\":\"(?&amp;lt;ProjectName&amp;gt;.*?)\"," 
    | rex field=_raw "ScopeDisplayName\":\"(?&amp;lt;ScopeDisplayName&amp;gt;.*?)\"," 
    | rex field=_raw "releaseName\":\"(?&amp;lt;releaseName&amp;gt;.*?)\"}" 
    | rex field=_raw "ActionId\":\"(?&amp;lt;ActionId&amp;gt;Release.ReleaseCreated)\"," 
    | rex field=_raw "ActorUPN\":\"(?&amp;lt;ActorUPN&amp;gt;.*?)\"," 
    | rex field=_raw "DeploymentResult\":\"(?&amp;lt;DeploymentResult&amp;gt;.*?)\"," 
    | rex field=_raw "PipelineName\":\"(?&amp;lt;PipelineName&amp;gt;.*?)\"," 
    | where releaseName != null AND PipelineName like "%Production" 
    | rename ProjectName AS App_Name 
    | rename ActorUPN AS User 
    | rename releaseName AS Change_Log_Description 
    | rename PipelineName AS Environment
    | rename DeploymentResult AS status
    | table _time, App_Name, User, Change_Log_Description, Environment, Version,status]
    
| sort -_time asc&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and im trying to get the status&lt;BR /&gt;at the first search i don't have this value but i do have it at the second one&lt;BR /&gt;i don't see status column at my results.&lt;/P&gt;
&lt;P&gt;can someone explain me why ?&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 18:23:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-union-not-working/m-p/602032#M209543</guid>
      <dc:creator>sarit_s</dc:creator>
      <dc:date>2022-06-16T18:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: union not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-union-not-working/m-p/602056#M209550</link>
      <description>&lt;P&gt;Try your where command like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where isnotnull(releaseName) AND PipelineName like "%Production"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Jun 2022 11:38:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-union-not-working/m-p/602056#M209550</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-16T11:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: union not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-union-not-working/m-p/602060#M209552</link>
      <description>&lt;P&gt;still the same&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 11:44:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-union-not-working/m-p/602060#M209552</guid>
      <dc:creator>sarit_s</dc:creator>
      <dc:date>2022-06-16T11:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: union not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-union-not-working/m-p/602062#M209554</link>
      <description>&lt;P&gt;Does this rex match your events?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw "DeploymentResult\":\"(?&amp;lt;DeploymentResult&amp;gt;.*?)\","&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Jun 2022 11:58:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-union-not-working/m-p/602062#M209554</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-16T11:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: union not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-union-not-working/m-p/602330#M209651</link>
      <description>&lt;P&gt;yes it does&lt;/P&gt;&lt;P&gt;the problem is the since i don't have the field status at the first search i don't get the results of the second one&lt;/P&gt;&lt;P&gt;maybe the union not fit here ?&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2022 07:55:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-union-not-working/m-p/602330#M209651</guid>
      <dc:creator>sarit_s</dc:creator>
      <dc:date>2022-06-19T07:55:57Z</dc:date>
    </item>
  </channel>
</rss>

