<?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: too many sources in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/too-many-sources/m-p/48858#M9274</link>
    <description>&lt;P&gt;Not sure if there's some reason not to do this versus ron's answer, but I have a monitor pointing to a directory and I simply have source=sourcename in the stanza in inputs.conf, which causes there to be only one source set.&lt;/P&gt;

&lt;P&gt;inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://my_directory]
source=singlesourcename
sourcetype=mysourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 23 Feb 2011 08:07:19 GMT</pubDate>
    <dc:creator>dwest</dc:creator>
    <dc:date>2011-02-23T08:07:19Z</dc:date>
    <item>
      <title>too many sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/too-many-sources/m-p/48857#M9273</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I just noticed something today and have an idea of maybe how to fix it but figured i would toss it by here too.&lt;/P&gt;

&lt;P&gt;In splunk on 2 servers I have in the inputs.conf the following to be monitored:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/drs/var/log]
disabled = false
sourcetype = drs7
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the problem i have noticed is that in this directory logs are generated every day with a different name.  The date is included in the name so what's happening is in splunk under Sources on the summary page there are tons of entries for each and every one of these logs, instead of 1 source just being /opt/drs/var/log.&lt;/P&gt;

&lt;P&gt;2 examples of some of the logs are below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/drs/var/log/drs.me-20110131_1525.log
/opt/drs/var/log/drs.gi-20110222_1559.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I was to change the entry in the inputs.conf to say:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/drs/var/log/drs.*.log]
disabled = false
sourcetype = drs7
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would this eliminate every single log being listed as a source?  &lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2011 06:51:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/too-many-sources/m-p/48857#M9273</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-02-23T06:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: too many sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/too-many-sources/m-p/48858#M9274</link>
      <description>&lt;P&gt;Not sure if there's some reason not to do this versus ron's answer, but I have a monitor pointing to a directory and I simply have source=sourcename in the stanza in inputs.conf, which causes there to be only one source set.&lt;/P&gt;

&lt;P&gt;inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://my_directory]
source=singlesourcename
sourcetype=mysourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Feb 2011 08:07:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/too-many-sources/m-p/48858#M9274</guid>
      <dc:creator>dwest</dc:creator>
      <dc:date>2011-02-23T08:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: too many sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/too-many-sources/m-p/48859#M9275</link>
      <description>&lt;P&gt;I removed mine, in lieu of this answer.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2011 08:14:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/too-many-sources/m-p/48859#M9275</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-23T08:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: too many sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/too-many-sources/m-p/48860#M9276</link>
      <description>&lt;P&gt;You may also want to take a look a the following question/answer:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://answers.splunk.com/questions/3470/consolidate-similarly-named-log-files-into-a-single-source/4420#4420" rel="nofollow"&gt;Consolidate similarly named log files into a single source&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;If you want to consolidate all files in a directory as a single source then using the &lt;CODE&gt;[monitor]&lt;/CODE&gt; stanza that has an explicit &lt;CODE&gt;source=&lt;/CODE&gt; setting will work, but if you have different types of log files in a single directory, then I recommend using a transformer-based approach (as detailed in 
the link above).   &lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2011 23:20:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/too-many-sources/m-p/48860#M9276</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2011-02-23T23:20:56Z</dc:date>
    </item>
  </channel>
</rss>

