<?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: Splunk Light Free + Universal Forwarder: How to fix my configurations to monitor input paths with wildcards and assign proper sourcetypes? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Light-Free-Universal-Forwarder-How-to-fix-my/m-p/284208#M54324</link>
    <description>&lt;P&gt;how about explaining how you solved it so others can benefit? &lt;/P&gt;</description>
    <pubDate>Wed, 21 Oct 2015 07:56:07 GMT</pubDate>
    <dc:creator>piebob</dc:creator>
    <dc:date>2015-10-21T07:56:07Z</dc:date>
    <item>
      <title>Splunk Light Free + Universal Forwarder: How to fix my configurations to monitor input paths with wildcards and assign proper sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Light-Free-Universal-Forwarder-How-to-fix-my/m-p/284206#M54322</link>
      <description>&lt;P&gt;Hello guys. &lt;/P&gt;

&lt;P&gt;I am new to Splunk.  Let me introduce my problem. I have installed Splunk Light Free on the server (based on Windows Server 2012 Std, hostname: logs.xxx.com) and universal forwarder on the machine with logs (based on Windows Server 2012 Std, hostname: myapplogs.xxx.com). &lt;/P&gt;

&lt;P&gt;Machine with logs (where UF installed) have 2 folders, e.g. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; C:\MyApp\API
 C:\MyApp\Service
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Logs location looks like: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; C:\MyApp\API\Shared\log\*.log
 C:\MyApp\Service\Shared\log\2015-10-19\*.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where &lt;CODE&gt;2015-10-19&lt;/CODE&gt; - today date. New folder is created everyday.&lt;/P&gt;

&lt;P&gt;How can I monitor these two paths with wildcards and send logs from there to:&lt;BR /&gt;
logs.xxx.com:9990 - for API logs&lt;BR /&gt;
logs.xxx.com: 9991- for Service logs&lt;/P&gt;

&lt;P&gt;I wrote some configs:&lt;BR /&gt;
Splunk inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunktcp://9990]
index = myapp
sourcetype = myapp_api

[splunktcp://9991]
index = myapp
sourcetype = myapp_service
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;UF inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\\MyApp\\API\\Shared\\log\\*.log]
_TCP_ROUTING = MyApp_API
disabled = false
index = myapp
sourcetype = myapp_api

[monitor://C:\\MyApp\\Service\\Shared\\log\\...\\*.log]
_TCP_ROUTING = MyApp_Service
disabled = false
index = myapp
sourcetype = myapp_service
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;UF outputs.conf: &lt;BR /&gt;
[tcpout:MyApp_API]&lt;BR /&gt;
server = logs.xxx.com:9990&lt;BR /&gt;
useACK = true&lt;/P&gt;

&lt;P&gt;[tcpout:MyApp_Service]&lt;BR /&gt;
server = logs.xxx.com:9991&lt;BR /&gt;
useACK = true&lt;BR /&gt;
But this configuration did not work properly. My folders are not monitored correctly. Instead, Splunk monitors folder, e.g. &lt;CODE&gt;C:\MyApp\Api\Builds&lt;/CODE&gt; And in Splunk, sourcetypes are not assigned properly. Instead of &lt;CODE&gt;myapp_api&lt;/CODE&gt;, I have &lt;CODE&gt;sourcetype=2015-10-19&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Please help me to fix configs. I am a newbie in Splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:38:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Light-Free-Universal-Forwarder-How-to-fix-my/m-p/284206#M54322</guid>
      <dc:creator>moo2k</dc:creator>
      <dc:date>2020-09-29T07:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Light Free + Universal Forwarder: How to fix my configurations to monitor input paths with wildcards and assign proper sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Light-Free-Universal-Forwarder-How-to-fix-my/m-p/284207#M54323</link>
      <description>&lt;P&gt;Thanks to all. I have solved problem by myself.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 06:06:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Light-Free-Universal-Forwarder-How-to-fix-my/m-p/284207#M54323</guid>
      <dc:creator>moo2k</dc:creator>
      <dc:date>2015-10-21T06:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Light Free + Universal Forwarder: How to fix my configurations to monitor input paths with wildcards and assign proper sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Light-Free-Universal-Forwarder-How-to-fix-my/m-p/284208#M54324</link>
      <description>&lt;P&gt;how about explaining how you solved it so others can benefit? &lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 07:56:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Light-Free-Universal-Forwarder-How-to-fix-my/m-p/284208#M54324</guid>
      <dc:creator>piebob</dc:creator>
      <dc:date>2015-10-21T07:56:07Z</dc:date>
    </item>
  </channel>
</rss>

