<?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: Windows: How to upload multiple files with different sourcetypes? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120800#M25094</link>
    <description>&lt;P&gt;Well, I found a solution to my problem. &lt;BR /&gt;
 1. In Splunk just go to Settings&amp;gt;Data inputs&amp;gt;Files &amp;amp; Directories.&lt;BR /&gt;
 2. Select New&lt;BR /&gt;
 3. Choose one-time index and select  the directory you want to upload. Then add three points after the directory address&lt;BR /&gt;
       for recursive (...) i.e C://blabla/blabla/...&lt;BR /&gt;
 4. In whitelist, input the extension i.e. (.stat$) &lt;BR /&gt;
 5. Finally, choose one sourcetype for all the data and it is done.&lt;/P&gt;

&lt;P&gt;After you finish uploading those files, delete the full path to your data in Settings&amp;gt;Data inputs&amp;gt;Files &amp;amp; Directories and repeat the process for the second files which have a different sourcetype. &lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2015 14:51:26 GMT</pubDate>
    <dc:creator>edrivera3</dc:creator>
    <dc:date>2015-04-02T14:51:26Z</dc:date>
    <item>
      <title>Windows: How to upload multiple files with different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120790#M25084</link>
      <description>&lt;P&gt;OS: Windows&lt;/P&gt;

&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I have a bunch of folders with five files, and I want to index just two of them. These two files have different custom sourcetypes. At this moment, I am uploading one file at a time so this is taking me a lot of time. I would appreciate your help with this matter.  Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 19:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120790#M25084</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2015-04-01T19:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Windows: How to upload multiple files with different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120791#M25085</link>
      <description>&lt;P&gt;Add some details. For example - you only want to index two of what - two of the files, not folders, right? Further more, are all 5 files the same file type? Are the two named in a particular fashion in each folder? Do the folders have a particular structure or naming ?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 19:45:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120791#M25085</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2015-04-01T19:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Windows: How to upload multiple files with different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120792#M25086</link>
      <description>&lt;P&gt;set up a forwarder then &lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 20:04:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120792#M25086</guid>
      <dc:creator>tonykung</dc:creator>
      <dc:date>2015-04-01T20:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Windows: How to upload multiple files with different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120793#M25087</link>
      <description>&lt;P&gt;Upload them all to a folder on your Splunk server. Then, do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk add oneshot /tmp/yourfolder/file1 -index myindex -sourcetype sourcetypeA
splunk add oneshot /tmp/yourfolder/file2 -index myindex -sourcetype sourcetypeB
splunk add oneshot /tmp/yourfolder/file3 -index myindex -sourcetype sourcetypeC
etc.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Apr 2015 20:25:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120793#M25087</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2015-04-01T20:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Windows: How to upload multiple files with different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120794#M25088</link>
      <description>&lt;P&gt;Ok. I have one directory which contains 70 subdirectories. Each subdirectory have five files with different extensions. I want to upload only two of those five files in each subdirectory. These two files have different sourcetypes and different filename. Also,  you can find the same filenames in all 70 subdirectories. &lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 20:35:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120794#M25088</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2015-04-01T20:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Windows: How to upload multiple files with different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120795#M25089</link>
      <description>&lt;P&gt;Assuming you are using Linux, you could produce a bash script using the find command and the splunk oneshot commands I listed below to accomplish what you have described.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 20:38:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120795#M25089</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2015-04-01T20:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Windows: How to upload multiple files with different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120796#M25090</link>
      <description>&lt;P&gt;Combine with some bash scripting and voila.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 20:40:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120796#M25090</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2015-04-01T20:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Windows: How to upload multiple files with different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120797#M25091</link>
      <description>&lt;P&gt;No, I'm using Windows but I just found a half solution. Here:&lt;BR /&gt;
1. In Splunk just go to Settings&amp;gt;Data inputs&amp;gt;Files &amp;amp; Directories.&lt;BR /&gt;
2. Select New&lt;BR /&gt;
3. In File or Directory, input the directory with recursive (...)  i.e C:// blabla/blabla/...&lt;BR /&gt;
4. In whitelist, input the extension i.e. (.stat$)&lt;BR /&gt;
5. Finally, choose one sourcetype for all the data and it is done.&lt;/P&gt;

&lt;P&gt;I just tried to do the same for the next type of file but splunk doesn't let me select the same directory because it was selected in the previous uploading. Is there a way to make splunk choose the same directory.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 21:17:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120797#M25091</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2015-04-01T21:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Windows: How to upload multiple files with different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120798#M25092</link>
      <description>&lt;P&gt;Why not use a lower root of the directory? &lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 21:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120798#M25092</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2015-04-01T21:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Windows: How to upload multiple files with different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120799#M25093</link>
      <description>&lt;P&gt;If I use a lower directory I will be uploading data from other directories that I don't want.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 21:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120799#M25093</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2015-04-01T21:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Windows: How to upload multiple files with different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120800#M25094</link>
      <description>&lt;P&gt;Well, I found a solution to my problem. &lt;BR /&gt;
 1. In Splunk just go to Settings&amp;gt;Data inputs&amp;gt;Files &amp;amp; Directories.&lt;BR /&gt;
 2. Select New&lt;BR /&gt;
 3. Choose one-time index and select  the directory you want to upload. Then add three points after the directory address&lt;BR /&gt;
       for recursive (...) i.e C://blabla/blabla/...&lt;BR /&gt;
 4. In whitelist, input the extension i.e. (.stat$) &lt;BR /&gt;
 5. Finally, choose one sourcetype for all the data and it is done.&lt;/P&gt;

&lt;P&gt;After you finish uploading those files, delete the full path to your data in Settings&amp;gt;Data inputs&amp;gt;Files &amp;amp; Directories and repeat the process for the second files which have a different sourcetype. &lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2015 14:51:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-upload-multiple-files-with-different-sourcetypes/m-p/120800#M25094</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2015-04-02T14:51:26Z</dc:date>
    </item>
  </channel>
</rss>

