<?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 remove specific folder from input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/remove-specific-folder-from-input/m-p/747196#M118742</link>
    <description>&lt;P&gt;I have configured syslog-ng to listen on multiple ports, save them in a folder with IP name and hf to send logs to indexers,&amp;nbsp;&lt;/P&gt;&lt;P&gt;In one case i have 127.0.0.1 sending as loopback to syslog-ng server, now i want to remove this IP from my input configs.&lt;/P&gt;&lt;P&gt;let suppose I have below folder&lt;/P&gt;&lt;P&gt;/opt/syslog/Fortigate&lt;/P&gt;&lt;P&gt;under fortigate I have mutiple fortigates sending logs and i dont know in future we can add a new fortigate here 1 hot is 127.0.0.1, i want to remove this from my inputs, what should I do.&lt;/P&gt;</description>
    <pubDate>Thu, 29 May 2025 12:46:13 GMT</pubDate>
    <dc:creator>Nawab</dc:creator>
    <dc:date>2025-05-29T12:46:13Z</dc:date>
    <item>
      <title>remove specific folder from input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/remove-specific-folder-from-input/m-p/747196#M118742</link>
      <description>&lt;P&gt;I have configured syslog-ng to listen on multiple ports, save them in a folder with IP name and hf to send logs to indexers,&amp;nbsp;&lt;/P&gt;&lt;P&gt;In one case i have 127.0.0.1 sending as loopback to syslog-ng server, now i want to remove this IP from my input configs.&lt;/P&gt;&lt;P&gt;let suppose I have below folder&lt;/P&gt;&lt;P&gt;/opt/syslog/Fortigate&lt;/P&gt;&lt;P&gt;under fortigate I have mutiple fortigates sending logs and i dont know in future we can add a new fortigate here 1 hot is 127.0.0.1, i want to remove this from my inputs, what should I do.&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 12:46:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/remove-specific-folder-from-input/m-p/747196#M118742</guid>
      <dc:creator>Nawab</dc:creator>
      <dc:date>2025-05-29T12:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: remove specific folder from input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/remove-specific-folder-from-input/m-p/747197#M118743</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244855"&gt;@Nawab&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Modify the inputs.conf file on your Splunk forwarder to add a blacklist entry for the specific directory you want to exclude.&lt;/P&gt;&lt;P&gt;Locate the stanza for your directory input, e.g.&amp;nbsp;[monitor:///opt/syslog/Fortigate], and add the blacklist line.&lt;/P&gt;&lt;PRE&gt;[monitor:///opt/syslog/Fortigate]
disabled = false
# ... other settings like index, sourcetype ...
blacklist = /opt/syslog/Fortigate/127\.0\.0\.1/.*&lt;/PRE&gt;&lt;P&gt;This configuration tells Splunk to monitor the /opt/syslog/Fortigate directory but ignore any files or subdirectories within the /opt/syslog/Fortigate/127.0.0.1 path. The \. escapes the dots in the IP address, and /.* ensures that everything within that specific directory is excluded.&lt;/P&gt;&lt;P&gt;After saving the changes to inputs.conf, you must restart the Splunk forwarder for the changes to take effect.&lt;/P&gt;&lt;P&gt;Check out the following inputs.conf docs on blacklist of files:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf#:~:text=way.%0A*%20No%20default.-,blacklist%20%3D%20%3Cregular%20expression%3E,-*%20If%20set%2C%20files" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf#:~:text=way.%0A*%20No%20default.-,blacklist%20%3D%20%3Cregular%20expression%3E,-*%20If%20set%2C%20files&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 12:49:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/remove-specific-folder-from-input/m-p/747197#M118743</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-05-29T12:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: remove specific folder from input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/remove-specific-folder-from-input/m-p/747198#M118744</link>
      <description>&lt;P&gt;I just pasted blacklist 127.0.0.1, and when I ran list monitor all 127.0.0.1 is remove, is it correct or should i used your method&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 12:55:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/remove-specific-folder-from-input/m-p/747198#M118744</guid>
      <dc:creator>Nawab</dc:creator>
      <dc:date>2025-05-29T12:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: remove specific folder from input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/remove-specific-folder-from-input/m-p/747200#M118745</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244855"&gt;@Nawab&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That should work too, its using a regex to match so 127.0.0.1 I guess will also match &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 12:59:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/remove-specific-folder-from-input/m-p/747200#M118745</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-05-29T12:59:38Z</dc:date>
    </item>
  </channel>
</rss>

