<?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: How to use join to identify calls to Country A followed by calls to a list of other Countries? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-join-to-identify-calls-to-Country-A-followed-by-calls/m-p/197383#M57034</link>
    <description>&lt;P&gt;I managed to get this working by adding stats count max(end_date) as maxisdate to my stats command to determine the end_date of my calls to Country A. I then in my query qualifying criteria used where start_date&amp;gt;maxisdate to ensure the other calls happened afterwards&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:28:10 GMT</pubDate>
    <dc:creator>garryclarke</dc:creator>
    <dc:date>2020-09-28T17:28:10Z</dc:date>
    <item>
      <title>How to use join to identify calls to Country A followed by calls to a list of other Countries?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-join-to-identify-calls-to-Country-A-followed-by-calls/m-p/197380#M57031</link>
      <description>&lt;P&gt;I am trying to identify calls from an originating number where a small number ie 1 or 2 are first made to country A followed by a large number of calls to any country.&lt;BR /&gt;
I have tried this with a join but cant seem to figure out the time part so that calls to country A have happened first.&lt;/P&gt;

&lt;P&gt;index=main Country!=NULL | join type=inner caller_no [search index=main Country=Country_A | stats count by caller_no | search count&amp;lt;3] | stats count by caller_no | search count &amp;gt;50&lt;/P&gt;

&lt;P&gt;Any help much appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-join-to-identify-calls-to-Country-A-followed-by-calls/m-p/197380#M57031</guid>
      <dc:creator>garryclarke</dc:creator>
      <dc:date>2020-09-28T17:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use join to identify calls to Country A followed by calls to a list of other Countries?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-join-to-identify-calls-to-Country-A-followed-by-calls/m-p/197381#M57032</link>
      <description>&lt;P&gt;Sorry, I couldn't understand your question. Do you have an example of your data and an example how the report should look like?&lt;/P&gt;

&lt;P&gt;The only thing I can think now is using the command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eventstats count AS calls BY Country,caller_no
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It would add to each event the number of calls a "caller_no" did to each country (computed over all events). From there you might be able to extract what you're after, like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats max(calls),min(calls) by caller_no
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Aug 2014 02:05:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-join-to-identify-calls-to-Country-A-followed-by-calls/m-p/197381#M57032</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2014-08-28T02:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use join to identify calls to Country A followed by calls to a list of other Countries?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-join-to-identify-calls-to-Country-A-followed-by-calls/m-p/197382#M57033</link>
      <description>&lt;P&gt;Thanks musskopf To provide a real life example I am trying to run a report to identify callers who for example make 1 or 2 calls to the UK followed by a large number of calls to another country. The report would then produce a list of callerids and the total of calls. &lt;/P&gt;

&lt;P&gt;01234567986 56 &lt;/P&gt;

&lt;P&gt;09458765784 21 &lt;/P&gt;

&lt;P&gt;The query I provided above gets the report correctly its just the logic within the joins to say that the calls to country A ie the UK where made before the other calls.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2014 08:35:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-join-to-identify-calls-to-Country-A-followed-by-calls/m-p/197382#M57033</guid>
      <dc:creator>garryclarke</dc:creator>
      <dc:date>2014-08-28T08:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use join to identify calls to Country A followed by calls to a list of other Countries?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-join-to-identify-calls-to-Country-A-followed-by-calls/m-p/197383#M57034</link>
      <description>&lt;P&gt;I managed to get this working by adding stats count max(end_date) as maxisdate to my stats command to determine the end_date of my calls to Country A. I then in my query qualifying criteria used where start_date&amp;gt;maxisdate to ensure the other calls happened afterwards&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-join-to-identify-calls-to-Country-A-followed-by-calls/m-p/197383#M57034</guid>
      <dc:creator>garryclarke</dc:creator>
      <dc:date>2020-09-28T17:28:10Z</dc:date>
    </item>
  </channel>
</rss>

