<?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: Make Splunk Look For Logs Inside Folders in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Make-Splunk-Look-For-Logs-Inside-Folders/m-p/529020#M89150</link>
    <description>&lt;P&gt;Universal Forwarders are supposed to recursively monitor subdirectories automatically, but perhaps another setting disabled that.&amp;nbsp; Try these settings.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor://C:\Systems\System\Logs\...\*.txt]
index = MyIndex
disabled = 0
recursive = true
_TCP_ROUTING = my_config&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 11 Nov 2020 19:10:36 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-11-11T19:10:36Z</dc:date>
    <item>
      <title>Make Splunk Look For Logs Inside Folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Make-Splunk-Look-For-Logs-Inside-Folders/m-p/529013#M89149</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello all! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm currently implementing &lt;STRONG&gt;Splunk&lt;/STRONG&gt; inside one of our company systems. It happens so that the logging structure works like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;C:\Systems\System\Logs\A_Lot_Of_Folders\2020(year)\11(month)\day.txt&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Since I have a lot of folders inside the &lt;STRONG&gt;Logs&lt;/STRONG&gt; structure, I configured my stanza like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[monitor://C:\Systems\System\Logs\*]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;index = MyIndex&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;disabled = 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;_TCP_ROUTING = my_config&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have also tried:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[monitor://C:\Systems\System\Logs]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;index = MyIndex&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;disabled = 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;_TCP_ROUTING = my_config&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But my Universal Forwarder won't look up inside the folders that I have inside the Logs directory.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 1:&lt;/STRONG&gt; Is there a way to config a "global stanza setting" so the Universal Forwarder will look for every new event inside all of the folders or I will have to work with the hard way, configuring each and every folder with a new monitor stanza?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 2&lt;/STRONG&gt;: Is there a way to automate whenever we turn to the next month or next year so I won't have to go back and configure all the stanzas with the current year/month that we are?&lt;/P&gt;&lt;P&gt;In terms of troubleshooting, I've already restarted the service and I have connectivity with the Splunk destination.&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 18:44:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Make-Splunk-Look-For-Logs-Inside-Folders/m-p/529013#M89149</guid>
      <dc:creator>luteixeira</dc:creator>
      <dc:date>2020-11-11T18:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Make Splunk Look For Logs Inside Folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Make-Splunk-Look-For-Logs-Inside-Folders/m-p/529020#M89150</link>
      <description>&lt;P&gt;Universal Forwarders are supposed to recursively monitor subdirectories automatically, but perhaps another setting disabled that.&amp;nbsp; Try these settings.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor://C:\Systems\System\Logs\...\*.txt]
index = MyIndex
disabled = 0
recursive = true
_TCP_ROUTING = my_config&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 Nov 2020 19:10:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Make-Splunk-Look-For-Logs-Inside-Folders/m-p/529020#M89150</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-11T19:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Make Splunk Look For Logs Inside Folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Make-Splunk-Look-For-Logs-Inside-Folders/m-p/529038#M89153</link>
      <description>&lt;P&gt;Hello, Rich!&lt;/P&gt;&lt;P&gt;Thank you for your reply. Just upvoted your comment since the recursive attribute resolved both of my problems.&lt;/P&gt;&lt;P&gt;You're awesome!&lt;/P&gt;&lt;P&gt;Thank you again&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 20:31:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Make-Splunk-Look-For-Logs-Inside-Folders/m-p/529038#M89153</guid>
      <dc:creator>luteixeira</dc:creator>
      <dc:date>2020-11-11T20:31:49Z</dc:date>
    </item>
  </channel>
</rss>

