<?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 search join in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-join/m-p/348979#M103313</link>
    <description>&lt;P&gt;Sure, sorry   &lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2017 08:30:45 GMT</pubDate>
    <dc:creator>Ponczi1</dc:creator>
    <dc:date>2017-12-19T08:30:45Z</dc:date>
    <item>
      <title>Splunk search join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-join/m-p/348977#M103311</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to join two searches so i could get number of declined transactions in time. First i look for inbound messages to get an IDs (it's in txRef tag) of special kinds transactions and then I am looking for outbound messages of all declined transaction to join them together based on the IDs&lt;/P&gt;

&lt;P&gt;The search I am using  looks like this but it is not working correctly.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=Auth AuthorizeTransaction Inbound Message "&amp;lt;alias" NOT "&amp;lt;ticket" 
| regex "&amp;lt;txRef&amp;gt;(?&amp;lt;TXREF&amp;gt;\d+)&amp;lt;" 
| eval txRefs = TXREF
| join type=inner txRefs [search index=Auth Outbound Message "declined" | regex "&amp;lt;txRef&amp;gt;(?&amp;lt;TXREF&amp;gt;\d+)&amp;lt;/txRef&amp;gt;" | eval txRefs=TXREF]
| timechart span=1h count as "Declined transactions"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT&lt;/P&gt;

&lt;P&gt;I have found what i was doing wrong. Apprently i was using Regex instead of Rex so i did not really extract the fields &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 07:41:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-join/m-p/348977#M103311</guid>
      <dc:creator>Ponczi1</dc:creator>
      <dc:date>2017-12-19T07:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-join/m-p/348978#M103312</link>
      <description>&lt;P&gt;will you please enter your  code in &lt;CODE&gt;101010&lt;/CODE&gt; written below text box as there are some escape characters in your query&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 08:19:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-join/m-p/348978#M103312</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2017-12-19T08:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-join/m-p/348979#M103313</link>
      <description>&lt;P&gt;Sure, sorry   &lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 08:30:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-join/m-p/348979#M103313</guid>
      <dc:creator>Ponczi1</dc:creator>
      <dc:date>2017-12-19T08:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-join/m-p/348980#M103314</link>
      <description>&lt;P&gt;That's good news. Ideally you should post an answer and accept it yourself, so that other people can see that you resolved it, and how. You can also upvote any answer or comments who helped you!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 09:12:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-join/m-p/348980#M103314</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-12-19T09:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-join/m-p/348981#M103315</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=Auth AuthorizeTransaction Inbound Message "&amp;lt;alias" NOT "&amp;lt;ticket" 
 | rex field=_raw "\&amp;lt;txRef\&amp;gt;(?&amp;lt;TXREF&amp;gt;\d+)\&amp;lt;\/txRef\&amp;gt;" 
 | eval txRefs = TXREF
 | join type=inner txRefs [search index=Auth Outbound Message "declined" | rex field=_raw "\&amp;lt;txRef\&amp;gt;(?&amp;lt;TXREF&amp;gt;\d+)\&amp;lt;\/txRef\&amp;gt;" | eval txRefs=TXREF]
 | timechart span=1h count as "Declined transactions"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 09:14:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-join/m-p/348981#M103315</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2017-12-19T09:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-join/m-p/348982#M103316</link>
      <description>&lt;P&gt;Yeah i figured that "rex" was the problem. But thanks a lot anyway!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 09:16:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-join/m-p/348982#M103316</guid>
      <dc:creator>Ponczi1</dc:creator>
      <dc:date>2017-12-19T09:16:13Z</dc:date>
    </item>
  </channel>
</rss>

