<?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 with matching strings? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-with-matching-strings/m-p/134275#M36687</link>
    <description>&lt;P&gt;Hi ,&lt;BR /&gt;
I have a log file with series of DFS path. Another csv  file with an array of strings (which I refer to as Qtree). I would like to do a string  search for each value of the field Qtree.  This is what I have tried:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=qt   | eval search_id=Qtree | join search_id type=inner [search source=C:\Users\risingh\Desktop\qtree\dfsback.txt $search_id$ | fields _raw  ]&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;This shows no results found.&lt;BR /&gt;
Can someone please help me with this string array search and joining the two results? I have been trying for a really long to make a way out, but couldn't .... need to get this sorted!&lt;/P&gt;</description>
    <pubDate>Tue, 25 Nov 2014 08:42:00 GMT</pubDate>
    <dc:creator>RichaSingh</dc:creator>
    <dc:date>2014-11-25T08:42:00Z</dc:date>
    <item>
      <title>How to join two log files with matching strings?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-with-matching-strings/m-p/134275#M36687</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;
I have a log file with series of DFS path. Another csv  file with an array of strings (which I refer to as Qtree). I would like to do a string  search for each value of the field Qtree.  This is what I have tried:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=qt   | eval search_id=Qtree | join search_id type=inner [search source=C:\Users\risingh\Desktop\qtree\dfsback.txt $search_id$ | fields _raw  ]&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;This shows no results found.&lt;BR /&gt;
Can someone please help me with this string array search and joining the two results? I have been trying for a really long to make a way out, but couldn't .... need to get this sorted!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 08:42:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-with-matching-strings/m-p/134275#M36687</guid>
      <dc:creator>RichaSingh</dc:creator>
      <dc:date>2014-11-25T08:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two log files with matching strings?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-with-matching-strings/m-p/134276#M36688</link>
      <description>&lt;P&gt;Try this,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search source=C:\Users\risingh\Desktop\qtree\dfsback.txt | [index=qt  | stats count by Qtree | table Qtree | rename Qtree as search | format ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sub search will gives you the list of Qtree's from 'qt'. &lt;BR /&gt;
Overall search will gives you the _raw data from the sourcefile which are matching Qtree from qt index.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 18:06:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-with-matching-strings/m-p/134276#M36688</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2014-11-25T18:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two log files with matching strings?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-with-matching-strings/m-p/134277#M36689</link>
      <description>&lt;P&gt;Try this&lt;BR /&gt;
    index=qt source=csvfile.csv |rename Qtree as search_id |join search_id type=inner [search source=C:\Users\risingh\Desktop\qtree\dfsback.txt $search_id$ | fields _raw ] ” or”index=qt source=csvfile.csv  |join Qtree type=inner [search source=C:\Users\risingh\Desktop\qtree\dfsback.txt $ Qtree $ | fields _raw ] &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:26:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-with-matching-strings/m-p/134277#M36689</guid>
      <dc:creator>tachifelix</dc:creator>
      <dc:date>2020-09-28T18:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two log files with matching strings?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-with-matching-strings/m-p/134278#M36690</link>
      <description>&lt;P&gt;Appreciate the response!&lt;BR /&gt;
But I have already tired those. &lt;BR /&gt;
Any other work around if anyone could direct me to ?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Dec 2014 19:39:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-with-matching-strings/m-p/134278#M36690</guid>
      <dc:creator>RichaSingh</dc:creator>
      <dc:date>2014-12-13T19:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two log files with matching strings?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-with-matching-strings/m-p/134279#M36691</link>
      <description>&lt;P&gt;take a look at this: &lt;A href="http://answers.splunk.com/answers/129424/how-to-compare-fields-over-multiple-sourcetypes-without-join-append-or-use-of-subsearches.html"&gt;http://answers.splunk.com/answers/129424/how-to-compare-fields-over-multiple-sourcetypes-without-join-append-or-use-of-subsearches.html&lt;/A&gt; to get an idea how to get this done a different way .... because &lt;CODE&gt;join&lt;/CODE&gt; should be a last resort .... not the first option to use&lt;/P&gt;</description>
      <pubDate>Sat, 13 Dec 2014 19:51:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-log-files-with-matching-strings/m-p/134279#M36691</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-12-13T19:51:27Z</dc:date>
    </item>
  </channel>
</rss>

