<?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: Best way to index .csv files with  some common fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Best-way-to-index-csv-files-with-some-common-fields/m-p/167717#M33951</link>
    <description>&lt;P&gt;won't the source name be the same (if they are saved in the same folder)&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jan 2015 05:52:08 GMT</pubDate>
    <dc:creator>simonbuskens</dc:creator>
    <dc:date>2015-01-06T05:52:08Z</dc:date>
    <item>
      <title>Best way to index .csv files with  some common fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-way-to-index-csv-files-with-some-common-fields/m-p/167715#M33949</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I have a series of .csv files (1 for each month) where the first 100 fields are the same, but after that there are about 4 or 5 fields that are specific to that month only.&lt;/P&gt;

&lt;P&gt;What is the best way to add that data into Splunk?&lt;/P&gt;

&lt;P&gt;Will I be able to add them all to the same index, or do they need their own index (so then I have to search across them all)&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 05:17:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-way-to-index-csv-files-with-some-common-fields/m-p/167715#M33949</guid>
      <dc:creator>simonbuskens</dc:creator>
      <dc:date>2015-01-06T05:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to index .csv files with  some common fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-way-to-index-csv-files-with-some-common-fields/m-p/167716#M33950</link>
      <description>&lt;P&gt;you can add in same index and source name will be different and you can search based on source name&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 05:49:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-way-to-index-csv-files-with-some-common-fields/m-p/167716#M33950</guid>
      <dc:creator>kml_uvce</dc:creator>
      <dc:date>2015-01-06T05:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to index .csv files with  some common fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-way-to-index-csv-files-with-some-common-fields/m-p/167717#M33951</link>
      <description>&lt;P&gt;won't the source name be the same (if they are saved in the same folder)&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 05:52:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-way-to-index-csv-files-with-some-common-fields/m-p/167717#M33951</guid>
      <dc:creator>simonbuskens</dc:creator>
      <dc:date>2015-01-06T05:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to index .csv files with  some common fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-way-to-index-csv-files-with-some-common-fields/m-p/167718#M33952</link>
      <description>&lt;P&gt;Files name are same or different? if the file name are different you can put in same index and can write queries according to source field.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 05:54:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-way-to-index-csv-files-with-some-common-fields/m-p/167718#M33952</guid>
      <dc:creator>asifhj</dc:creator>
      <dc:date>2015-01-06T05:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to index .csv files with  some common fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-way-to-index-csv-files-with-some-common-fields/m-p/167719#M33953</link>
      <description>&lt;P&gt;For your sourcetype, define the fieldnames in the header in all of your csv's in props.conf.&lt;/P&gt;

&lt;P&gt;Then, define additional fields in that header for the sourcetype. E.g.,&lt;/P&gt;

&lt;P&gt;fields = alwaysherefield1, alwaysherefield2, alwaysherefield...30, sometimesherefield31, sometimesherefield32, sometimesherefield33&lt;/P&gt;

&lt;P&gt;If those fields dont exists, there wont be a value set. In the CSVs that have the fields, the values will be set. Then in your search, you can rename the fields to whatever you want them to be.&lt;/P&gt;

&lt;P&gt;Refer to here for props.conf examples :&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Data/Extractfieldsfromfileheadersatindextime"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/Data/Extractfieldsfromfileheadersatindextime&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 05:56:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-way-to-index-csv-files-with-some-common-fields/m-p/167719#M33953</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-01-06T05:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to index .csv files with  some common fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-way-to-index-csv-files-with-some-common-fields/m-p/167720#M33954</link>
      <description>&lt;P&gt;Nope, folders cannot have two files with same name.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 06:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-way-to-index-csv-files-with-some-common-fields/m-p/167720#M33954</guid>
      <dc:creator>asifhj</dc:creator>
      <dc:date>2015-01-06T06:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to index .csv files with  some common fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-way-to-index-csv-files-with-some-common-fields/m-p/167721#M33955</link>
      <description>&lt;P&gt;Source name will be path+filename, sourcetype will be whatever you defined it to be.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 04:18:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-way-to-index-csv-files-with-some-common-fields/m-p/167721#M33955</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-01-07T04:18:33Z</dc:date>
    </item>
  </channel>
</rss>

