<?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 Inputs Help in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Inputs-Help/m-p/694865#M115441</link>
    <description>&lt;P&gt;First step in debugging such stuff is to run two commands&lt;/P&gt;&lt;PRE&gt;splunk list monitor&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;splunk list inputstatus&lt;/PRE&gt;&lt;P&gt;But as far as I remember Splunk has problems with monitor inputs overlapping the same directories.&lt;/P&gt;&lt;P&gt;You could instead just monitor whole directory with a whitelist of all four types of files and then dynamically rewrite sourcetype on ingest depending on the file path included in the source field.&lt;/P&gt;&lt;P&gt;But yes, it can cause issues with multiple significantly different sourcetypes (especially if they differ in timestamp format/placement).&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2024 17:21:24 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-07-31T17:21:24Z</dc:date>
    <item>
      <title>Splunk Inputs Help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Inputs-Help/m-p/694831#M115438</link>
      <description>&lt;P&gt;Good morning,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I am trying to monitor all files within this directory /var/log/syslog/&amp;lt;IP&amp;gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Directory structure: 

/var/log/syslog/&amp;lt;IP&amp;gt;/2024/01 | 02 | 03 | 04 | 05 | 06 | 07/secure | cron | messages 
Hope this makes sense there are multiple subdirectories, the end goal is to monitor secure, cron, and messages 

I wrote this stanza within inputs.conf and the configuration did take on the Universal Forwarder

[monitor:///var/log/syslog/192.168.1.1/.../secure]

disabled = false

host_segment = 4 

index = insght



[monitor:///var/log/syslog/192.168.1.1/.../cron]

disabled = false

host_segment = 4 

index = insght



[monitor:///var/log/syslog/192.168.1.1/.../messages]

disabled = false

host_segment = 4 

index = insght&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have also tried this to capture all subdirs/files&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[monitor:///var/log/syslog/192.168.1.1]

disabled = false

host_segment = 4 

recursive = true

index = insght&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also within _internal I get this message:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;INFO TaillingProcess [#### MainTailingThread] - Parsing configuration stanza: monitor:///var/log/syslog/&amp;lt;IP&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which seems to hang there with no other messages logged for the particular stanza(s)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IP Address used is notional, thanks for the help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 17:19:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Inputs-Help/m-p/694831#M115438</guid>
      <dc:creator>JoshuaJJ</dc:creator>
      <dc:date>2024-07-31T17:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Inputs Help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Inputs-Help/m-p/694845#M115439</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253478"&gt;@JoshuaJJ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;at first: you're running Splunk as root or asplunk user?&lt;/P&gt;&lt;P&gt;if splunk user, has this user the grants to read these files?&lt;/P&gt;&lt;P&gt;then please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/log/syslog/*/*/*/]
disabled = false
host_segment = 4 
index = insght
whitelist=secure|cron|message&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 16:07:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Inputs-Help/m-p/694845#M115439</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-07-31T16:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Inputs Help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Inputs-Help/m-p/694848#M115440</link>
      <description>&lt;P&gt;Thanks for your speedy reply!&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Splunk is running as root and is monitoring other files within /var/log for example /var/log/audit/audit.log&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a specific IP I want to monitor /var/log/syslog/192.168.1.1 and all subdirectories and files under it. My thought was this should work&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[monitor:///var/log/syslog/192.168.1.1]

disabled = false 

recursive = true 

index = insight &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The index does exist and Splunk is running as root.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 17:20:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Inputs-Help/m-p/694848#M115440</guid>
      <dc:creator>JoshuaJJ</dc:creator>
      <dc:date>2024-07-31T17:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Inputs Help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Inputs-Help/m-p/694865#M115441</link>
      <description>&lt;P&gt;First step in debugging such stuff is to run two commands&lt;/P&gt;&lt;PRE&gt;splunk list monitor&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;splunk list inputstatus&lt;/PRE&gt;&lt;P&gt;But as far as I remember Splunk has problems with monitor inputs overlapping the same directories.&lt;/P&gt;&lt;P&gt;You could instead just monitor whole directory with a whitelist of all four types of files and then dynamically rewrite sourcetype on ingest depending on the file path included in the source field.&lt;/P&gt;&lt;P&gt;But yes, it can cause issues with multiple significantly different sourcetypes (especially if they differ in timestamp format/placement).&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 17:21:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Inputs-Help/m-p/694865#M115441</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-07-31T17:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Inputs Help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Inputs-Help/m-p/694943#M115446</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253478"&gt;@JoshuaJJ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if in the /var/log/syslog/192.168.1.1 folder you have only those three files add * at the end of the monitor stanza,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/log/syslog/192.168.1.1/*]
disabled = false 
recursive = true 
index = insight &lt;/LI-CODE&gt;&lt;P&gt;otherwise use the whitelist option I hinted.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/log/syslog/192.168.1.1/*/*/]
disabled = false
host_segment = 4 
index = insght
whitelist=secure|cron|message&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 06:47:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Inputs-Help/m-p/694943#M115446</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-08-01T06:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Inputs Help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Inputs-Help/m-p/695000#M115452</link>
      <description>&lt;P&gt;Figured it out thanks to you all!&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I did.&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I ran the&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;./splunk list monitor&lt;/STRONG&gt; command to see what was being monitored. It was as you said Splunk does not like multiple overlapping input stanzas. This is what my inputs configuration looks like. I had to remove the /var/log/audit stanzas&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;inputs.conf&amp;nbsp;&lt;/P&gt;&lt;P&gt;[monitor:///var/log]&lt;/P&gt;&lt;P&gt;disabled = false&lt;/P&gt;&lt;P&gt;blacklist = syslog&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[monitor:///var/log/syslog/10.10.10.10/.../*]&lt;/P&gt;&lt;P&gt;disabled = false&amp;nbsp;&lt;/P&gt;&lt;P&gt;host = loginsight01&lt;/P&gt;&lt;P&gt;index = insight&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[monitor:///var/log/syslog/10.10.10.11/.../*]&lt;/P&gt;&lt;P&gt;disabled = false&amp;nbsp;&lt;/P&gt;&lt;P&gt;host = loginsight02&lt;/P&gt;&lt;P&gt;index = insight&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[monitor:///var/log/syslog/10.10.10.12/.../*]&lt;/P&gt;&lt;P&gt;disabled = false&amp;nbsp;&lt;/P&gt;&lt;P&gt;host = loginsight03&lt;/P&gt;&lt;P&gt;index = insight&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all for the help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 17:21:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Inputs-Help/m-p/695000#M115452</guid>
      <dc:creator>JoshuaJJ</dc:creator>
      <dc:date>2024-08-01T17:21:38Z</dc:date>
    </item>
  </channel>
</rss>

