<?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 How to monitor multiple source types in same folder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-multiple-source-types-in-same-folder/m-p/77420#M15855</link>
    <description>&lt;P&gt;BlackBerry servers have many different .txt log files all created in the one folder.  &lt;/P&gt;

&lt;P&gt;I have a universal forwarder installed on a win 2k8 server which I have setup the following inputs.conf&lt;/P&gt;

&lt;P&gt;[monitor://C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\Logs\20*]&lt;BR /&gt;
Sourcetype=BES_Server_Logs&lt;/P&gt;

&lt;P&gt;I get errors like the following.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;06-18-2012 14:10:33.062 +1000 ERROR TailingProcessor - matching C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\Logs\20120606\ against ^C:\\Program Files (x86)\\Research In Motion\\BlackBerry Enterprise Server\\Logs\\20[^\\]*\\$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I was hoping to setup multiple monitor stanzas for the different log files to have different sourcetypes.  Is this possible?&lt;/P&gt;

&lt;P&gt;eg:&lt;BR /&gt;
[monitor://C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\Logs\20*\server_name_MAGT_*_001.txt]&lt;/P&gt;

&lt;P&gt;Log files are named like this&lt;/P&gt;

&lt;P&gt;C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\Logs\20120101\server_name_MAGT_20120101_001.txt&lt;BR /&gt;&lt;BR /&gt;
C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\Logs\20120101\server_name_ALRT_20120101_001.txt&lt;BR /&gt;&lt;BR /&gt;
C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\Logs\20120101\server_name_BBIM_20120101_001.txt&lt;/P&gt;

&lt;P&gt;Should I use props.conf to rename the sourcetype, if so where should the props.conf live and how specific should the regex be for the files?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:57:15 GMT</pubDate>
    <dc:creator>ilv2splunk</dc:creator>
    <dc:date>2020-09-28T11:57:15Z</dc:date>
    <item>
      <title>How to monitor multiple source types in same folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-multiple-source-types-in-same-folder/m-p/77420#M15855</link>
      <description>&lt;P&gt;BlackBerry servers have many different .txt log files all created in the one folder.  &lt;/P&gt;

&lt;P&gt;I have a universal forwarder installed on a win 2k8 server which I have setup the following inputs.conf&lt;/P&gt;

&lt;P&gt;[monitor://C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\Logs\20*]&lt;BR /&gt;
Sourcetype=BES_Server_Logs&lt;/P&gt;

&lt;P&gt;I get errors like the following.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;06-18-2012 14:10:33.062 +1000 ERROR TailingProcessor - matching C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\Logs\20120606\ against ^C:\\Program Files (x86)\\Research In Motion\\BlackBerry Enterprise Server\\Logs\\20[^\\]*\\$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I was hoping to setup multiple monitor stanzas for the different log files to have different sourcetypes.  Is this possible?&lt;/P&gt;

&lt;P&gt;eg:&lt;BR /&gt;
[monitor://C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\Logs\20*\server_name_MAGT_*_001.txt]&lt;/P&gt;

&lt;P&gt;Log files are named like this&lt;/P&gt;

&lt;P&gt;C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\Logs\20120101\server_name_MAGT_20120101_001.txt&lt;BR /&gt;&lt;BR /&gt;
C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\Logs\20120101\server_name_ALRT_20120101_001.txt&lt;BR /&gt;&lt;BR /&gt;
C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\Logs\20120101\server_name_BBIM_20120101_001.txt&lt;/P&gt;

&lt;P&gt;Should I use props.conf to rename the sourcetype, if so where should the props.conf live and how specific should the regex be for the files?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:57:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-multiple-source-types-in-same-folder/m-p/77420#M15855</guid>
      <dc:creator>ilv2splunk</dc:creator>
      <dc:date>2020-09-28T11:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor multiple source types in same folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-multiple-source-types-in-same-folder/m-p/77421#M15856</link>
      <description>&lt;P&gt;You could do it like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
hostname=yourservername

[monitor://C:\\Program Files (x86)\\Research In Motion\\BlackBerry Enterprise Server\\Logs\\...\\*_MAGT_*_001.txt]
sourcetype=BES_magt

[monitor://C:\\Program Files (x86)\\Research In Motion\\BlackBerry Enterprise Server\\Logs\\...\\*_ALRT_*_001.txt]
sourcetype=BES_alrt

    [monitor://C:\\Program Files (x86)\\Research In Motion\\BlackBerry Enterprise Server\\Logs\\...\\*_BBIM_*_001.txt]
    sourcetype=BES_bbim
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This would all part of &lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;. You could put it under&lt;BR /&gt;
C:\Program Files\Splunkforwarder\etc\system\local&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2012 08:38:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-multiple-source-types-in-same-folder/m-p/77421#M15856</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-06-18T08:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor multiple source types in same folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-multiple-source-types-in-same-folder/m-p/77422#M15857</link>
      <description>&lt;P&gt;Thats what I thought I could do but when I do that i get the following errors in splunkd.log&lt;/P&gt;

&lt;P&gt;06-19-2012 07:41:00.066 +1000 ERROR TailingProcessor - matching C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\Logs\20120619\ against ^C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\Logs\.&lt;EM&gt;\[^\]&lt;/EM&gt;&lt;EM&gt;MAGT&lt;/EM&gt;[^\]*_001.txt$&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2012 22:46:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-multiple-source-types-in-same-folder/m-p/77422#M15857</guid>
      <dc:creator>ilv2splunk</dc:creator>
      <dc:date>2012-06-18T22:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor multiple source types in same folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-multiple-source-types-in-same-folder/m-p/77423#M15858</link>
      <description>&lt;P&gt;This looks like a known issue: SPL-47988 " ERROR TailingProcessor - matching X against Y "&lt;/P&gt;

&lt;P&gt;It is scheduled to be fixed in 4.3.4&lt;/P&gt;

&lt;P&gt;Here is another person with the same question, and a work-around from support:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/47852/error-tailingprocessor-matching"&gt;ERROR - TailingProcessor - matching...&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;As it turns out, my original answer was correct - if this bug didn't exist...&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 00:16:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-multiple-source-types-in-same-folder/m-p/77423#M15858</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-06-20T00:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor multiple source types in same folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-multiple-source-types-in-same-folder/m-p/77424#M15859</link>
      <description>&lt;P&gt;I am trying to do this with 6.0.1. Just wonder if you get it working. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2014 21:00:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-multiple-source-types-in-same-folder/m-p/77424#M15859</guid>
      <dc:creator>Dev999</dc:creator>
      <dc:date>2014-03-10T21:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor multiple source types in same folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-multiple-source-types-in-same-folder/m-p/77425#M15860</link>
      <description>&lt;P&gt;Our expert said - &lt;/P&gt;

&lt;P&gt;Yeah this would have to be done on a heavy indexer, &lt;BR /&gt;
Which is also good for doing the parsing CPU processing on a heavy forwarder instead of the indexer.&lt;/P&gt;

&lt;P&gt;We could send this file(s) through syslog  (/etc/rsyslog.conf) to heavy forwarder too, then the heavy forwarder would transform the file.&lt;/P&gt;

&lt;P&gt;Only thing I would ask if the timestamps are going to be different. That would propose a new problem to solve. Having three different date formats in one file?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 15:20:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-multiple-source-types-in-same-folder/m-p/77425#M15860</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-03-07T15:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor multiple source types in same folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-multiple-source-types-in-same-folder/m-p/77426#M15861</link>
      <description>&lt;P&gt;Sorry - wrong thread ; -)&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 15:23:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-multiple-source-types-in-same-folder/m-p/77426#M15861</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-03-07T15:23:17Z</dc:date>
    </item>
  </channel>
</rss>

