<?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 index multiple CSV file from a local machine? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291301#M55538</link>
    <description>&lt;P&gt;If the csv file gets created, then indexed then a new file gets created I'd use the &lt;CODE&gt;batch&lt;/CODE&gt; method.  &lt;/P&gt;

&lt;P&gt;The batch method with the move_policy sinkhole parameter will index the csv file, then delete it so a new csv file can be written.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2017 17:23:12 GMT</pubDate>
    <dc:creator>dbcase</dc:creator>
    <dc:date>2017-02-17T17:23:12Z</dc:date>
    <item>
      <title>How to index multiple CSV file from a local machine?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291292#M55529</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have multiple CSV files which are on the local machine under the same directory. I would like to add these files and index them.&lt;BR /&gt;
I have multiple CSV files with fields let's say.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;table_1.csv with fields 'Bus No', 'Booking ID', 'start Time', 'End Time', 'Source', 'Destination'&lt;/LI&gt;
&lt;LI&gt;table_2.csv with fields 'Bus No', 'Booking ID', 'Via','Halting Timings','Passenger counts', 'Failures', etcs.&lt;/LI&gt;
&lt;LI&gt;table_3.csv with fields ....&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Can someone guide me the best way to do it?&lt;/P&gt;

&lt;P&gt;Thanks In Adv.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 17:03:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291292#M55529</guid>
      <dc:creator>ibmrakesh</dc:creator>
      <dc:date>2017-02-08T17:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to index multiple CSV file from a local machine?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291293#M55530</link>
      <description>&lt;P&gt;Maybe monitoring the folder? Are the files dynamic or static?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 17:40:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291293#M55530</guid>
      <dc:creator>felipesewaybric</dc:creator>
      <dc:date>2017-02-08T17:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to index multiple CSV file from a local machine?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291294#M55531</link>
      <description>&lt;P&gt;@felipesewaybricker: Thanks for responding my query! In both the cases i.e if CSV files are 1. static and 2. dynamic.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 13:16:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291294#M55531</guid>
      <dc:creator>ibmrakesh</dc:creator>
      <dc:date>2017-02-09T13:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to index multiple CSV file from a local machine?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291295#M55532</link>
      <description>&lt;P&gt;Nice, you can monitor the folder, send to the same index and perform the searches as follows: index = nnn source = file.csv&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 14:15:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291295#M55532</guid>
      <dc:creator>felipesewaybric</dc:creator>
      <dc:date>2017-02-09T14:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to index multiple CSV file from a local machine?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291296#M55533</link>
      <description>&lt;P&gt;If an answer to your question has solved your issue, please accept the answer.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 17:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291296#M55533</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-02-09T17:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to index multiple CSV file from a local machine?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291297#M55534</link>
      <description>&lt;P&gt;@felipesewaybricker: This is just for clarification, Are you saying we need to use "Monitoring" option instead of "Upload" option while uploading files. If this is Yes then how will i be creating Index  for that ?&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;what about if csv files are dynamic ?&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 10 Feb 2017 19:46:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291297#M55534</guid>
      <dc:creator>ibmrakesh</dc:creator>
      <dc:date>2017-02-10T19:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to index multiple CSV file from a local machine?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291298#M55535</link>
      <description>&lt;P&gt;Create the index ahead of time (settings-&amp;gt;index-&amp;gt;new)&lt;/P&gt;

&lt;P&gt;Then in your inputs.conf file on the universal forwarder put in something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[batch:///var/nfs/SAT_SplunkLogs/ts/beta/*.csv]
move_policy = sinkhole
host_segment=5
sourcetype=csv
index=betats
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then restart splunk on the universal forwarder&lt;/P&gt;

&lt;P&gt;FYI . you can substitute monitor for batch, the move_policy = sinkhole will delete the CSV file after it is indexed&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 19:57:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291298#M55535</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-02-10T19:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to index multiple CSV file from a local machine?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291299#M55536</link>
      <description>&lt;P&gt;@dbcase: Is this for dynamic CSV file?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 17:17:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291299#M55536</guid>
      <dc:creator>ibmrakesh</dc:creator>
      <dc:date>2017-02-17T17:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to index multiple CSV file from a local machine?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291300#M55537</link>
      <description>&lt;P&gt;for dynamic (meaning the file gets added to) I'd use something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/nfs/SAT_SplunkLogs/version/*.csv]
crcSalt = defprof
sourcetype=csv
index=allmsos
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Feb 2017 17:18:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291300#M55537</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-02-17T17:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to index multiple CSV file from a local machine?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291301#M55538</link>
      <description>&lt;P&gt;If the csv file gets created, then indexed then a new file gets created I'd use the &lt;CODE&gt;batch&lt;/CODE&gt; method.  &lt;/P&gt;

&lt;P&gt;The batch method with the move_policy sinkhole parameter will index the csv file, then delete it so a new csv file can be written.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 17:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-multiple-CSV-file-from-a-local-machine/m-p/291301#M55538</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-02-17T17:23:12Z</dc:date>
    </item>
  </channel>
</rss>

