<?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: Do I need to use the join command to combine three searches (including one search with the transaction command)? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Do-I-need-to-use-the-join-command-to-combine-three-searches/m-p/304665#M91578</link>
    <description>&lt;P&gt;Fixed it, it was the if statement. Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2017 20:17:00 GMT</pubDate>
    <dc:creator>aba83</dc:creator>
    <dc:date>2017-05-22T20:17:00Z</dc:date>
    <item>
      <title>Do I need to use the join command to combine three searches (including one search with the transaction command)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-I-need-to-use-the-join-command-to-combine-three-searches/m-p/304660#M91573</link>
      <description>&lt;P&gt;Hi, I'm trying to combine my three searches so I can see which users are logging in from multiple locations at one time. At the moment, I have these three searches.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mensa_exchange-prod sourcetype=iis cs_uri_stem="/owa/auth.owa" NOT LogoffReason=* OriginalIP=* | iplocation OriginalIP | search Country=* NOT Country="United States"| rex field=user "\w{3}\\\(?\S+)" | eval User=lower(user) |table User Country | stats values(Country) as country dc(Country) as Count by User | sort User

index=mensa_radius-prod acct_status_type=1 acct_delay_time=0 vendor=Reserved NOT Wireless | iplocation tunnel_client_endpoint | search Country=* NOT Country="United States" | rex field=user "\w{3}\\\(?\S+)" | eval User=lower(user) | table User Country | stats values(Country) as Country dc(Country) as Count by User | sort User 

index=mensa_radius-prod vendor=Microsoft NOT Wireless | transaction user, Client_Friendly_Name maxspan=1 startswith=acct_session_id=* endswith=action=success  | iplocation tunnel_client_endpoint | search Country=* NOT Country="United States" | rex field=user "\w{3}\\\(?\S+)" | eval User=lower(user) |table User Country | stats values(Country) as country dc(Country) as Count by User | sort User
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I was thinking the way to do this is to use a join; however, I don't know how that works if I have a transaction command. Is there another way to use this or do I have to use a JOIN? If I do use a join, how would I go about it? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 22:39:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-I-need-to-use-the-join-command-to-combine-three-searches/m-p/304660#M91573</guid>
      <dc:creator>aba83</dc:creator>
      <dc:date>2017-05-19T22:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to use the join command to combine three searches (including one search with the transaction command)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-I-need-to-use-the-join-command-to-combine-three-searches/m-p/304661#M91574</link>
      <description>&lt;P&gt;At the moment I have this search that combines the first two searches. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=mensa_exchange-prod sourcetype=iis cs_uri_stem="/owa/auth.owa" user=* NOT LogoffReason=* OriginalIP=*) OR (index=mensa_radius-prod acct_status_type=1 acct_delay_time=0 vendor=Reserved tunnel_client_endpoint=* user=* NOT Wireless) | iplocation OriginalIP | iplocation tunnel_client_endpoint | search Country!="United States" | rex field=user "\w{3}\\\(?\S+)" | eval User=lower(user) |table User Country | stats values(Country) as country dc(Country) as Count by User | sort User
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now I just have to figure out how to add the last one with the transaction. I'm assuming a join, any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 23:58:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-I-need-to-use-the-join-command-to-combine-three-searches/m-p/304661#M91574</guid>
      <dc:creator>aba83</dc:creator>
      <dc:date>2017-05-19T23:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to use the join command to combine three searches (including one search with the transaction command)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-I-need-to-use-the-join-command-to-combine-three-searches/m-p/304662#M91575</link>
      <description>&lt;P&gt;Hi @aba83 - For future reference, instead of wrapping your sample searches in HTML &lt;CODE&gt;&amp;lt;code&amp;gt;&lt;/CODE&gt;, try using the Code Sample (101010) button on the toolbar when you're posting your sample searches, data, and/or code.  It's right next to the Blockquote button. Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2017 00:48:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-I-need-to-use-the-join-command-to-combine-three-searches/m-p/304662#M91575</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-05-20T00:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to use the join command to combine three searches (including one search with the transaction command)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-I-need-to-use-the-join-command-to-combine-three-searches/m-p/304663#M91576</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=mensa_exchange-prod sourcetype=iis cs_uri_stem="/owa/auth.owa" NOT LogoffReason=* OriginalIP=*)
OR (index=mensa_radius-prod acct_status_type=1 acct_delay_time=0 vendor=Reserved NOT Wireless)
| append [ search index=mensa_radius-prod vendor=Microsoft NOT Wireless 
          | transaction user, Client_Friendly_Name maxspan=1 startswith=acct_session_id=* endswith=action=success ]
| eval clientIP=if(index="mensa_exchange-prod",OriginalIP,tunnel_client_endpoint)
| iplocation clientIP
| search Country=* NOT Country="United States"
| rex field=user "\w{3}\\\(?&amp;lt;user&amp;gt;\S+)" 
| eval User=lower(user) 
| stats values(Country) as country dc(Country) as Count by User
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But you do need to check the rex command - something got munged when you posted it, and I made an assumption. But it still seems weird to me.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 04:55:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-I-need-to-use-the-join-command-to-combine-three-searches/m-p/304663#M91576</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2017-05-22T04:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to use the join command to combine three searches (including one search with the transaction command)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-I-need-to-use-the-join-command-to-combine-three-searches/m-p/304664#M91577</link>
      <description>&lt;P&gt;The transaction search works now, but now the records from the &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mensa_exchange-prod sourcetype=iis cs_uri_stem="/owa/auth.owa" NOT LogoffReason=* OriginalIP=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;isn't coming through. &lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 20:08:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-I-need-to-use-the-join-command-to-combine-three-searches/m-p/304664#M91577</guid>
      <dc:creator>aba83</dc:creator>
      <dc:date>2017-05-22T20:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to use the join command to combine three searches (including one search with the transaction command)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-I-need-to-use-the-join-command-to-combine-three-searches/m-p/304665#M91578</link>
      <description>&lt;P&gt;Fixed it, it was the if statement. Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 20:17:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-I-need-to-use-the-join-command-to-combine-three-searches/m-p/304665#M91578</guid>
      <dc:creator>aba83</dc:creator>
      <dc:date>2017-05-22T20:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to use the join command to combine three searches (including one search with the transaction command)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-I-need-to-use-the-join-command-to-combine-three-searches/m-p/304666#M91579</link>
      <description>&lt;P&gt;Yes, I forgot to put quotation marks around the value in the if statement. I fixed it - thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 22:00:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-I-need-to-use-the-join-command-to-combine-three-searches/m-p/304666#M91579</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2017-05-22T22:00:57Z</dc:date>
    </item>
  </channel>
</rss>

