<?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 How to join two log files in Splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-in-Splunk/m-p/49939#M11986</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I have to two sourcetypes(NetSweep_log &amp;amp; Radius_log), both of them have a common field called "FramedIP". How can i extract the rows which have this common field ??&lt;/P&gt;

&lt;P&gt;Please help.&lt;BR /&gt;
Thanks!!&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:22:22 GMT</pubDate>
    <dc:creator>alenseb</dc:creator>
    <dc:date>2020-09-28T12:22:22Z</dc:date>
    <item>
      <title>How to join two log files in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-in-Splunk/m-p/49939#M11986</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I have to two sourcetypes(NetSweep_log &amp;amp; Radius_log), both of them have a common field called "FramedIP". How can i extract the rows which have this common field ??&lt;/P&gt;

&lt;P&gt;Please help.&lt;BR /&gt;
Thanks!!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:22:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-in-Splunk/m-p/49939#M11986</guid>
      <dc:creator>alenseb</dc:creator>
      <dc:date>2020-09-28T12:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two log files in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-in-Splunk/m-p/49940#M11987</link>
      <description>&lt;P&gt;So basically you will need to (and sorry if there is some repetition to what you have done, question is a little unclear) is...&lt;/P&gt;

&lt;P&gt;Extract the fields for each sourcetype, with the easiest way being the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/User/InteractiveFieldExtractionExample"&gt;IFX&lt;/A&gt; (Interactive Field eXtractor), alternatively using &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.3/Knowledge/Addfieldsatsearchtime#Add_fields_at_search_time_through_configuration_file_edits"&gt;conf files&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Search those sourcetypes and you should have that field available in your Field Discovery panel (on the left). e.g....&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(Soucetype=NetSweep_log OR sourcetype=Radius_log) | top FramedIP
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Shoule be simple enough.&lt;/P&gt;

&lt;P&gt;Hope this helps, if it doesn't please explain a little more&lt;/P&gt;

&lt;P&gt;MHibbin&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2012 12:55:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-in-Splunk/m-p/49940#M11987</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-09-03T12:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two log files in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-in-Splunk/m-p/49941#M11988</link>
      <description>&lt;P&gt;I guess this shows all the FramedIP from both the sourcetype.&lt;BR /&gt;
But what i really need is All the data available in NetSweep_Log for FramedIP present in Radius_log.&lt;/P&gt;

&lt;P&gt;I am new to Splunk. Sorry if its a stupid question.&lt;/P&gt;

&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:22:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-in-Splunk/m-p/49941#M11988</guid>
      <dc:creator>alenseb</dc:creator>
      <dc:date>2020-09-28T12:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two log files in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-in-Splunk/m-p/49942#M11989</link>
      <description>&lt;P&gt;So you want to use the values from the FramedIP field from the NetSweep_Log and use it search in the Radius Logs?&lt;/P&gt;

&lt;P&gt;In that case you will need to use the subsearch feature, this will involve:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Define you base search to gather field values (e.g. &lt;CODE&gt;sourcetype=NetSweep_Log | top FramedIP&lt;/CODE&gt;)&lt;/LI&gt;
&lt;LI&gt;Append this to your main search, where you look at the Radius_log (e.g. &lt;CODE&gt;sourcetype=Radius_log [search sourcetype=NetSweep_Log | top FramedIP | fields + FramedIP]&lt;/CODE&gt;) &lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;I'm assuming this is what you after. You should read docs here... &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.3/User/HowSubsearchesWork" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.3/User/HowSubsearchesWork&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-in-Splunk/m-p/49942#M11989</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2020-09-28T12:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two log files in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-in-Splunk/m-p/49943#M11990</link>
      <description>&lt;P&gt;If this answers your question please mark it as accepted (with the tick next to the answer), and if you are feeling generous you can also up-vote it. Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2012 13:38:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-in-Splunk/m-p/49943#M11990</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-09-03T13:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two log files in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-in-Splunk/m-p/49944#M11991</link>
      <description>&lt;P&gt;I tried this command, but it returns "0 matching events".&lt;BR /&gt;
The logic seems to be correct though.&lt;BR /&gt;
Is there any syntax we are missing?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 06:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-in-Splunk/m-p/49944#M11991</guid>
      <dc:creator>alenseb</dc:creator>
      <dc:date>2012-09-04T06:42:12Z</dc:date>
    </item>
  </channel>
</rss>

