<?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 combine the results of searches from two CSV files? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-searches-from-two-CSV-files/m-p/253794#M75969</link>
    <description>&lt;P&gt;@somesoni2: Thanks for the response. As I am a beginner can you please help me how to  create a index in my scenario, I mean how to change the inputs.conf and props.conf files based on this scenario.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2017 07:34:31 GMT</pubDate>
    <dc:creator>ibmrakesh</dc:creator>
    <dc:date>2017-01-30T07:34:31Z</dc:date>
    <item>
      <title>How to combine the results of searches from two CSV files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-searches-from-two-CSV-files/m-p/253792#M75967</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;
I am new to Splunk world, Please help me to explore.&lt;/P&gt;

&lt;P&gt;I have two CSV files let's say &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;table_1.csv with fields 'Bus No', 'Booking ID', 'start Time', 'End Time', 'Source', 'Destination'
table_2.csv with fields 'Bus No', 'Booking ID', 'Via','Halting Timings','Passenger counts', 'Failures', etcs.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to somehow join the two csv files to get the details i.e 'Bus No', 'Booking ID', 'Passenger counts', 'Failures', 'start Time', 'End Time', 'Source', 'Destination' but the condition is like below.&lt;BR /&gt;
If there are any failures ( i.e failures &amp;gt; 0 ) in table_2.csv file, then get the 'Bus No', 'Booking ID' from the table_2.csv file and match with the 'Bus No', 'Booking ID' field in table_1.csv. If it is there, then get the information of 'Bus No', 'Booking ID', 'Passenger counts', 'Failures', 'start Time', 'End Time', 'Source', 'Destination' in output.&lt;/P&gt;

&lt;P&gt;Thanks In Adv.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:32:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-searches-from-two-CSV-files/m-p/253792#M75967</guid>
      <dc:creator>ibmrakesh</dc:creator>
      <dc:date>2020-09-29T12:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine the results of searches from two CSV files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-searches-from-two-CSV-files/m-p/253793#M75968</link>
      <description>&lt;P&gt;Assuming the csv data is indexed in Splunk, give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype=bar (source=*table_1.csv OR source=*table_2.csv)
| table "Bus No" "Booking ID" "start Time" "End Time" "Source" "Destination" "Via" "Halting Timings" "Passenger counts" "Failures"
| stats values(*) as * by  "Bus No" "Booking ID" | where 'Failures'&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jan 2017 20:47:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-searches-from-two-CSV-files/m-p/253793#M75968</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-25T20:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine the results of searches from two CSV files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-searches-from-two-CSV-files/m-p/253794#M75969</link>
      <description>&lt;P&gt;@somesoni2: Thanks for the response. As I am a beginner can you please help me how to  create a index in my scenario, I mean how to change the inputs.conf and props.conf files based on this scenario.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 07:34:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-searches-from-two-CSV-files/m-p/253794#M75969</guid>
      <dc:creator>ibmrakesh</dc:creator>
      <dc:date>2017-01-30T07:34:31Z</dc:date>
    </item>
  </channel>
</rss>

