<?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 Help using multiple sources in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-using-multiple-sources/m-p/171161#M49005</link>
    <description>&lt;P&gt;Hi,  I am successfully reading and joining a couple of sources, but am having a trouble adding a 3rd.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=access_logs TTG  | 
rex field=_raw "\"GET\s*.*?xml\?*(?&amp;lt;ttg_request&amp;gt;.*?)\s*HTTP.*?\"" | 
rex field=ttg_request "c_account_code=(?&amp;lt;ttg_c_account_code&amp;gt;.*?)&amp;amp;" | 
rex field=ttg_request "c_error_code=(?&amp;lt;ttg_c_error_code&amp;gt;.*?)&amp;amp;" |  
rex field=ttg_request "c_time_stamp=(?&amp;lt;ttg_c_time_stamp&amp;gt;.*?)&amp;amp;" | 
rename ttg_c_account_code as addressID | 
join addressID [search index="tt2_trial_accounts"] | 
table addressID accountCode ttg_c_error_code ttg_c_time_stamp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the 3rd&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=json_mi | table accountCode event.type date
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to join like this;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=access_logs OR index=json_mi |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but do not know how to handle the above rex fields in this instance.&lt;/P&gt;

&lt;P&gt;Ideally ending up with something that looks like;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;table accountCode some_field(ttg_c_error_code or event.type date) date(ttg_c_time_stamp or date)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help appreciated.&lt;/P&gt;</description>
    <pubDate>Sun, 02 Mar 2014 15:56:18 GMT</pubDate>
    <dc:creator>tt1</dc:creator>
    <dc:date>2014-03-02T15:56:18Z</dc:date>
    <item>
      <title>Help using multiple sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-using-multiple-sources/m-p/171161#M49005</link>
      <description>&lt;P&gt;Hi,  I am successfully reading and joining a couple of sources, but am having a trouble adding a 3rd.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=access_logs TTG  | 
rex field=_raw "\"GET\s*.*?xml\?*(?&amp;lt;ttg_request&amp;gt;.*?)\s*HTTP.*?\"" | 
rex field=ttg_request "c_account_code=(?&amp;lt;ttg_c_account_code&amp;gt;.*?)&amp;amp;" | 
rex field=ttg_request "c_error_code=(?&amp;lt;ttg_c_error_code&amp;gt;.*?)&amp;amp;" |  
rex field=ttg_request "c_time_stamp=(?&amp;lt;ttg_c_time_stamp&amp;gt;.*?)&amp;amp;" | 
rename ttg_c_account_code as addressID | 
join addressID [search index="tt2_trial_accounts"] | 
table addressID accountCode ttg_c_error_code ttg_c_time_stamp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the 3rd&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=json_mi | table accountCode event.type date
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to join like this;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=access_logs OR index=json_mi |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but do not know how to handle the above rex fields in this instance.&lt;/P&gt;

&lt;P&gt;Ideally ending up with something that looks like;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;table accountCode some_field(ttg_c_error_code or event.type date) date(ttg_c_time_stamp or date)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Mar 2014 15:56:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-using-multiple-sources/m-p/171161#M49005</guid>
      <dc:creator>tt1</dc:creator>
      <dc:date>2014-03-02T15:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help using multiple sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-using-multiple-sources/m-p/171162#M49006</link>
      <description>&lt;P&gt;We need a bit more info to help with crafting the search, however generally you can use the following template to "join" data sets &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search for all the data&amp;gt; | &amp;lt;eval/extract all the needed fields&amp;gt; | stats &amp;lt;aggregates, fields ...&amp;gt; BY &amp;lt;fields you want to join&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Mar 2014 03:11:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-using-multiple-sources/m-p/171162#M49006</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2014-03-03T03:11:22Z</dc:date>
    </item>
  </channel>
</rss>

