<?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: Sourcetype assigning in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-assigning/m-p/22907#M3601</link>
    <description>&lt;P&gt;This is the link where the info about overlapping input stanzas is available &lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Specifyinputpathswithwildcards"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Specifyinputpathswithwildcards&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Aug 2010 16:14:35 GMT</pubDate>
    <dc:creator>RobertRi</dc:creator>
    <dc:date>2010-08-03T16:14:35Z</dc:date>
    <item>
      <title>Sourcetype assigning</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-assigning/m-p/22903#M3597</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I have troubles asigning sourcetypes for multiple filetypes in one directory.
I have read a few posts which talk about the same problem, but I don't get the right solution to get it work&lt;/P&gt;

&lt;P&gt;I have a directroy with two filetypes servername_app1_timestamp.log and servername_app2_timestamp.log&lt;/P&gt;

&lt;P&gt;Now I want to asign servername_app1_.... the sourcetype app1 ans so on.&lt;/P&gt;

&lt;P&gt;This is my inputs.conf on the forwarder&lt;BR /&gt;
   [monitor:///applications/logs/]&lt;BR /&gt;
   disabled = false&lt;BR /&gt;
   alwaysOpenFile = 1&lt;BR /&gt;
   &lt;EM&gt;whitelist = servername&lt;/EM&gt;(app1|app2)_.*.log$&lt;BR /&gt;
   index = myapps&lt;BR /&gt;
   sourcetype = default_apps&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;and this the props.conf from the indexer&lt;BR /&gt;
   [source:.../servername_app1_*]&lt;BR /&gt;
   sourcetype = app1&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;[source:.../servername_app2_*]&lt;BR /&gt;
   sourcetype = app2&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;We use version 4.1.4.
Do you have a clue whats going wrong&lt;/P&gt;

&lt;P&gt;Thanks 
Rob&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2010 17:16:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-assigning/m-p/22903#M3597</guid>
      <dc:creator>RobertRi</dc:creator>
      <dc:date>2010-07-30T17:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype assigning</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-assigning/m-p/22904#M3598</link>
      <description>&lt;P&gt;Since you are manually setting the sourcetype anyway, try setting it at the input rather than via props.conf.  Monitor works for Files or Directories.  &lt;/P&gt;

&lt;P&gt;You should be able to have two inputs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///applications/logs/servername_app1*]
disabled = false
followTail = 0
index = main
sourcetype = app1

[monitor:///applications/logs/servername_app2*]
disabled = false
followTail = 0
index = main
sourcetype = app2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And no need for the props.conf entries.  &lt;/P&gt;</description>
      <pubDate>Sat, 31 Jul 2010 02:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-assigning/m-p/22904#M3598</guid>
      <dc:creator>dskillman</dc:creator>
      <dc:date>2010-07-31T02:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype assigning</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-assigning/m-p/22905#M3599</link>
      <description>&lt;P&gt;This doesn't work. It is also described in the technical documentation and its recommended to use the props.conf to split the different logfiles from one directory.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2010 17:44:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-assigning/m-p/22905#M3599</guid>
      <dc:creator>RobertRi</dc:creator>
      <dc:date>2010-08-02T17:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype assigning</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-assigning/m-p/22906#M3600</link>
      <description>&lt;P&gt;I believe it used to be true, but AFAIK 4.1 should have fixed this.  Could you send the link to the docs you are using.  May need to tweak them.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2010 05:45:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-assigning/m-p/22906#M3600</guid>
      <dc:creator>dskillman</dc:creator>
      <dc:date>2010-08-03T05:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype assigning</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-assigning/m-p/22907#M3601</link>
      <description>&lt;P&gt;This is the link where the info about overlapping input stanzas is available &lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Specifyinputpathswithwildcards"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Specifyinputpathswithwildcards&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2010 16:14:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-assigning/m-p/22907#M3601</guid>
      <dc:creator>RobertRi</dc:creator>
      <dc:date>2010-08-03T16:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype assigning</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-assigning/m-p/22908#M3602</link>
      <description>&lt;P&gt;My solution was the following&lt;/P&gt;

&lt;P&gt;I have only configured the forwarder (not a lightweightforwarder)
If I understand it right, than a normal forwarder made the parsing of the messages before he sends the data to the indexer and so I can configure the props.conf on the forwarder.&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;BR /&gt;
[monitor:///applications/logs]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
&lt;EM&gt;whitelist = servername&lt;/EM&gt;(app1|app2)_.*.log$&lt;BR /&gt;
alwaysOpenFile = 1&lt;BR /&gt;
index = default_apps&lt;BR /&gt;
&lt;BR /&gt;
props.conf&lt;BR /&gt;
[source::.../servername_app1_....log]&lt;BR /&gt;
sourcetype = app1&lt;BR /&gt;
&lt;BR /&gt;
[source::.../servername_app2_....log]&lt;BR /&gt;
sourcetype = app2&lt;BR /&gt;
&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2010 16:19:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-assigning/m-p/22908#M3602</guid>
      <dc:creator>RobertRi</dc:creator>
      <dc:date>2010-08-03T16:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype assigning</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-assigning/m-p/22909#M3603</link>
      <description>&lt;P&gt;According to the Dev team, the settings above should work in 4.1.  If they don't it's bug.  I will work on getting the docs updated.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2010 11:23:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-assigning/m-p/22909#M3603</guid>
      <dc:creator>dskillman</dc:creator>
      <dc:date>2010-08-05T11:23:05Z</dc:date>
    </item>
  </channel>
</rss>

