<?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: Alternative for join. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Alternative-for-join/m-p/488790#M136520</link>
    <description>&lt;P&gt;Thanks for your time Devid, but I want to print commitCodes for orders only that have decision received orders not for all the weborders.&lt;/P&gt;

&lt;P&gt;Just to make clear I want to print commitcodes for the orders that, has milestoneID Session_create or Order_release and have a decision received and Overrider before.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:19:43 GMT</pubDate>
    <dc:creator>sandeepmakkena</dc:creator>
    <dc:date>2020-09-30T02:19:43Z</dc:date>
    <item>
      <title>Alternative for join.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Alternative-for-join/m-p/488788#M136518</link>
      <description>&lt;P&gt;index=core a=BuilderService AND "decision.received" "Overrides" NOT "ItemOverrides=()" NOT commitCode=null &lt;BR /&gt;
| rename Orderid as data.Orderid &lt;BR /&gt;
| join data. Orderid&lt;BR /&gt;
    [ search index=transaction "mileStoneId"=SESSION_CREATE &lt;BR /&gt;
    | rename commitCode as CommitCodeAtSessionCreate] &lt;BR /&gt;
| join data. Orderid&lt;BR /&gt;
    [ search index=transaction "mileStoneId"="ORDER_RELEASE" &lt;BR /&gt;
    | rename commitCode as CommitCodeAtWebOrderRelease] &lt;BR /&gt;
| table data.Orderid,CommitCodeAtSessionCreate,commitCode,data.webOrderNumber,CommitCodeAtWebOrderRelease &lt;BR /&gt;
| rename commitCode as OverridenCommitCode&lt;/P&gt;

&lt;P&gt;I am trying to print commitCode at different stages of order placement.This works but, I just don't want to use join.&lt;BR /&gt;
Thanks for your time.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:19:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Alternative-for-join/m-p/488788#M136518</guid>
      <dc:creator>sandeepmakkena</dc:creator>
      <dc:date>2020-09-30T02:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for join.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Alternative-for-join/m-p/488789#M136519</link>
      <description>&lt;P&gt;Hi @sandeepmakkena,&lt;/P&gt;

&lt;P&gt;Try something like this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=core a=BuilderService AND "decision.received" "Overrides" NOT "ItemOverrides=()" NOT commitCode=null)
OR
(index=transaction "mileStoneId"=SESSION_CREATE)
OR
(index=transaction "mileStoneId"="ORDER_RELEASE")
|rename data.Orderid as Orderid, data.webOrderNumber as webOrderNumber
|eval CommitCodeAtSessionCreate=if(mileStoneId="SESSION_CREATE",mileStoneId,null())
|eval CommitCodeAtWebOrderRelease=if(mileStoneId="ORDER_RELEASE",mileStoneId,null())
|stats values(CommitCodeAtSessionCreate) as CommitCodeAtSessionCreate values(commitCode) as commitCode values(CommitCodeAtWebOrderRelease) as CommitCodeAtWebOrderRelease values(webOrderNumber) as webOrderNumber by Orderid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if that helps.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 06:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Alternative-for-join/m-p/488789#M136519</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-09-23T06:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for join.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Alternative-for-join/m-p/488790#M136520</link>
      <description>&lt;P&gt;Thanks for your time Devid, but I want to print commitCodes for orders only that have decision received orders not for all the weborders.&lt;/P&gt;

&lt;P&gt;Just to make clear I want to print commitcodes for the orders that, has milestoneID Session_create or Order_release and have a decision received and Overrider before.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:19:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Alternative-for-join/m-p/488790#M136520</guid>
      <dc:creator>sandeepmakkena</dc:creator>
      <dc:date>2020-09-30T02:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for join.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Alternative-for-join/m-p/488791#M136521</link>
      <description>&lt;P&gt;In that case all you need to do is include an extra check to insure that the &lt;CODE&gt;orderid&lt;/CODE&gt; is in both indices : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; (index=core a=BuilderService AND "decision.received" "Overrides" NOT "ItemOverrides=()" NOT commitCode=null)
 OR
 (index=transaction "mileStoneId"=SESSION_CREATE)
 OR
 (index=transaction "mileStoneId"="ORDER_RELEASE")
 |rename data.Orderid as Orderid, data.webOrderNumber as webOrderNumber
 |eval CommitCodeAtSessionCreate=if(mileStoneId="SESSION_CREATE",mileStoneId,null())
 |eval CommitCodeAtWebOrderRelease=if(mileStoneId="ORDER_RELEASE",mileStoneId,null())
 |stats dc(index) as condition values(CommitCodeAtSessionCreate) as CommitCodeAtSessionCreate values(commitCode) as commitCode values(CommitCodeAtWebOrderRelease) as CommitCodeAtWebOrderRelease values(webOrderNumber) as webOrderNumber by Orderid
|where condition &amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Sep 2019 03:52:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Alternative-for-join/m-p/488791#M136521</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-09-24T03:52:04Z</dc:date>
    </item>
  </channel>
</rss>

