<?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: Multiple files in one folder as one source in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-files-in-one-folder-as-one-source/m-p/127993#M26298</link>
    <description>&lt;P&gt;My best solution is to add a field with the folder name:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="C:\\..\\Logs\\*" | rex field=source ".*[//\\\]+(?&amp;lt;folder&amp;gt;.*)[//\\\]+.[a-zA-Z.0-9]*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;than i can use it for timechart for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="C:\\..\\Logs\\*" | rex field=source ".*[//\\\]+(?&amp;lt;folder&amp;gt;.*)[//\\\]+.[a-zA-Z.0-9]*" | timechart count by folder
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 04 Feb 2014 14:05:54 GMT</pubDate>
    <dc:creator>Moritz</dc:creator>
    <dc:date>2014-02-04T14:05:54Z</dc:date>
    <item>
      <title>Multiple files in one folder as one source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-files-in-one-folder-as-one-source/m-p/127991#M26296</link>
      <description>&lt;P&gt;Hallo there,&lt;BR /&gt;
i have Logs which are devided into 16000 line logs. In Splunk every part of the Log is an extra source.&lt;/P&gt;

&lt;P&gt;What is the best way to work with them as a logical single Log?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2014 14:44:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-files-in-one-folder-as-one-source/m-p/127991#M26296</guid>
      <dc:creator>Moritz</dc:creator>
      <dc:date>2014-01-28T14:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple files in one folder as one source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-files-in-one-folder-as-one-source/m-p/127992#M26297</link>
      <description>&lt;P&gt;Hi Moritz,&lt;/P&gt;

&lt;P&gt;assign your own sourcetype to the monitor stanza in &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/admin/inputsconf"&gt;inputs.conf&lt;/A&gt;. This way you can search for the sourcetype instead of searching for source like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=YourNewMagicSourceType | ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or you simply search for all of your logs like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=YourLogFiles* | .....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2014 14:52:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-files-in-one-folder-as-one-source/m-p/127992#M26297</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-01-28T14:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple files in one folder as one source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-files-in-one-folder-as-one-source/m-p/127993#M26298</link>
      <description>&lt;P&gt;My best solution is to add a field with the folder name:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="C:\\..\\Logs\\*" | rex field=source ".*[//\\\]+(?&amp;lt;folder&amp;gt;.*)[//\\\]+.[a-zA-Z.0-9]*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;than i can use it for timechart for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="C:\\..\\Logs\\*" | rex field=source ".*[//\\\]+(?&amp;lt;folder&amp;gt;.*)[//\\\]+.[a-zA-Z.0-9]*" | timechart count by folder
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Feb 2014 14:05:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-files-in-one-folder-as-one-source/m-p/127993#M26298</guid>
      <dc:creator>Moritz</dc:creator>
      <dc:date>2014-02-04T14:05:54Z</dc:date>
    </item>
  </channel>
</rss>

