<?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: monitoring a directory and setting sourcetypes in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-a-directory-and-setting-sourcetypes/m-p/130182#M26776</link>
    <description>&lt;P&gt;Thanks for the answer, How would you configure the source statement to get everything starting with aaa? would [source::aaa*] work?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jul 2014 17:59:30 GMT</pubDate>
    <dc:creator>andywt123</dc:creator>
    <dc:date>2014-07-03T17:59:30Z</dc:date>
    <item>
      <title>monitoring a directory and setting sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-a-directory-and-setting-sourcetypes/m-p/130179#M26773</link>
      <description>&lt;P&gt;I have a universal forwarder monitoring /var/log directory on our syslog server. In the directory I have files of aaa,bbb,ccc, plus other files. What is the best way to monitor these files and set different source types.  I want to set a different sourcetype for those three files and then everything else would be sourcetype=syslog. Would the following work?        &lt;/P&gt;

&lt;P&gt;[monitor:///var/logs]&lt;BR /&gt;
    blacklist = aaa|bbb&lt;BR /&gt;
    sourcetype=syslognew&lt;/P&gt;

&lt;P&gt;[monitor:///var/logs]&lt;BR /&gt;
    blacklist = aaa|ccc&lt;BR /&gt;
    sourcetype=syslogvmware&lt;/P&gt;

&lt;P&gt;[monitor:///var/logs]&lt;BR /&gt;
    blacklist = ccc|bbb&lt;BR /&gt;
    sourcetype=syslogaaa&lt;/P&gt;

&lt;P&gt;[monitor:///var/logs]&lt;BR /&gt;
        blacklist = aa|bbb|ccc&lt;BR /&gt;
        sourcetype=syslog&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 16:21:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-a-directory-and-setting-sourcetypes/m-p/130179#M26773</guid>
      <dc:creator>andywt123</dc:creator>
      <dc:date>2014-07-03T16:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring a directory and setting sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-a-directory-and-setting-sourcetypes/m-p/130180#M26774</link>
      <description>&lt;P&gt;I would NOT recommend this method. Each monitor stanza should be unique. Do this instead&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt; (in the same directory)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::aaa]
sourcetpe=syslogaaa

[source::bbb]
sourcetype= syslogvmware
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;etc.&lt;/P&gt;

&lt;P&gt;Note that you are using Splunk's automatic sourcetyping in &lt;CODE&gt;inputs.conf&lt;/CODE&gt;. Then you can use &lt;CODE&gt;props.conf&lt;/CODE&gt; to set sourcetypes for individual inputs - if needed. &lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 16:37:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-a-directory-and-setting-sourcetypes/m-p/130180#M26774</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-07-03T16:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring a directory and setting sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-a-directory-and-setting-sourcetypes/m-p/130181#M26775</link>
      <description>&lt;P&gt;Thanks for the answer, How would you configure the source statement to get everything starting with aaa? would [source::aaa*] work?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 17:58:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-a-directory-and-setting-sourcetypes/m-p/130181#M26775</guid>
      <dc:creator>andywt123</dc:creator>
      <dc:date>2014-07-03T17:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring a directory and setting sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-a-directory-and-setting-sourcetypes/m-p/130182#M26776</link>
      <description>&lt;P&gt;Thanks for the answer, How would you configure the source statement to get everything starting with aaa? would [source::aaa*] work?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 17:59:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-a-directory-and-setting-sourcetypes/m-p/130182#M26776</guid>
      <dc:creator>andywt123</dc:creator>
      <dc:date>2014-07-03T17:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring a directory and setting sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-a-directory-and-setting-sourcetypes/m-p/130183#M26777</link>
      <description>&lt;P&gt;Thanks for the answer, How would you configure the source statement to get everything starting with aaa? would [source::aaa*] work?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 17:59:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-a-directory-and-setting-sourcetypes/m-p/130183#M26777</guid>
      <dc:creator>andywt123</dc:creator>
      <dc:date>2014-07-03T17:59:45Z</dc:date>
    </item>
  </channel>
</rss>

