<?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: How to ceate a regex blacklist in inputs.conf with a common string value in log file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-ceate-a-regex-blacklist-in-inputs-conf-with-a-common/m-p/549573#M155947</link>
    <description>&lt;P&gt;&lt;STRONG&gt;blacklist = &amp;lt;regular expression&amp;gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;* If set, files from this input are NOT monitored if their path matches the specified regex.&lt;/P&gt;&lt;P&gt;* If a file matches the regexes in both the deny list and allow list settings, the file is NOT monitored. Deny lists take precedence over allow lists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it should be a regular expression that might contain $. &lt;STRONG&gt;$&lt;/STRONG&gt; is not mandatory.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Apr 2021 07:42:32 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2021-04-28T07:42:32Z</dc:date>
    <item>
      <title>How to ceate a regex blacklist in inputs.conf with a common string value in log file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ceate-a-regex-blacklist-in-inputs-conf-with-a-common/m-p/549492#M155914</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Having issue in identifying the correct blacklist regex expression to skip the few logs which are loading to Splunk.&lt;/P&gt;
&lt;P&gt;Below is my monitoring path which is updated in the inputs.conf file:&lt;/P&gt;
&lt;PRE&gt;[monitor:///project-abc/src/logs/*.log]&lt;/PRE&gt;
&lt;P&gt;I will have the log files will be created daily as below:&lt;/P&gt;
&lt;P&gt;/project-abc/src/logs/interestrate_runner_2021-04-23_15:06:05.123456_3456789012345_7890.log /project-abc/src/logs/contractrate_runner_2021-05-21_16:06:05.654321_2345345678901_7891.log /project-abc/src/logs/savingscost_runner_2021-05-21_17:08:05.214356_2345345678901_7892.log /project-abc/src/logs/interestrate_2021-04-23_15:06:05.123456_3456789012345_7890.log&lt;BR /&gt;/project-abc/src/logs/contractrate_2021-05-21_16:06:05.654321_2345345678901_7891.log&lt;BR /&gt;/project-abc/src/logs/savingscost_2021-05-21_17:08:05.214356_2345345678901_7892.log&lt;/P&gt;
&lt;P&gt;I want to blacklist the below files:&lt;/P&gt;
&lt;P&gt;/project-abc/src/logs/interestrate_runner_2021-04-23_15:06:05.123456_3456789012345_7890.log /project-abc/src/logs/contractrate_runner_2021-05-21_16:06:05.654321_2345345678901_7891.log /project-abc/src/logs/savingscost_runner_2021-05-21_17:08:05.214356_2345345678901_7892.log&lt;/P&gt;
&lt;P&gt;I have tried the below regex, but none of them worked.&lt;/P&gt;
&lt;PRE&gt;[monitor:///project-abc/src/logs/*.log]
blacklist = .*runner.*\.(log)$
blacklist = runner\.(log)$&lt;/PRE&gt;
&lt;P&gt;Can someone please help? what will be correct regex used to skip the logs with string called "runner"??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 13:52:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ceate-a-regex-blacklist-in-inputs-conf-with-a-common/m-p/549492#M155914</guid>
      <dc:creator>sreesuresh545</dc:creator>
      <dc:date>2022-11-11T13:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to ceate a regex blacklist in inputs.conf with a common string value in log file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ceate-a-regex-blacklist-in-inputs-conf-with-a-common/m-p/549502#M155916</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233885"&gt;@sreesuresh545&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;You just need to provide part of the file name i.e. _runner_.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///project-abc/src/logs/*.log]
blacklist = \_runner\_&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 17:46:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ceate-a-regex-blacklist-in-inputs-conf-with-a-common/m-p/549502#M155916</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-04-27T17:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to ceate a regex blacklist in inputs.conf with a common string value in log file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ceate-a-regex-blacklist-in-inputs-conf-with-a-common/m-p/549505#M155919</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;So, the "$" sign at the end of blacklist is not required?&lt;/P&gt;&lt;P&gt;I will try the mentioned option.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 18:10:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ceate-a-regex-blacklist-in-inputs-conf-with-a-common/m-p/549505#M155919</guid>
      <dc:creator>sreesuresh545</dc:creator>
      <dc:date>2021-04-27T18:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to ceate a regex blacklist in inputs.conf with a common string value in log file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ceate-a-regex-blacklist-in-inputs-conf-with-a-common/m-p/549573#M155947</link>
      <description>&lt;P&gt;&lt;STRONG&gt;blacklist = &amp;lt;regular expression&amp;gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;* If set, files from this input are NOT monitored if their path matches the specified regex.&lt;/P&gt;&lt;P&gt;* If a file matches the regexes in both the deny list and allow list settings, the file is NOT monitored. Deny lists take precedence over allow lists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it should be a regular expression that might contain $. &lt;STRONG&gt;$&lt;/STRONG&gt; is not mandatory.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 07:42:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ceate-a-regex-blacklist-in-inputs-conf-with-a-common/m-p/549573#M155947</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-04-28T07:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to ceate a regex blacklist in inputs.conf with a common string value in log file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ceate-a-regex-blacklist-in-inputs-conf-with-a-common/m-p/620545#M215724</link>
      <description>&lt;P&gt;Thanks this worked for me. Finally, after lots of searching.&lt;/P&gt;&lt;P&gt;I blacklisted some Apache error logs as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/var/log/httpd/X.XXXX.co.*-error_log

blacklist = \-error\_&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 07:42:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ceate-a-regex-blacklist-in-inputs-conf-with-a-common/m-p/620545#M215724</guid>
      <dc:creator>kallinikos</dc:creator>
      <dc:date>2022-11-11T07:42:32Z</dc:date>
    </item>
  </channel>
</rss>

