<?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: inputs.conf blacklist format in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-blacklist-format-Is-there-a-format-that-needs-to-be/m-p/630559#M108079</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/61094"&gt;@dolj&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;when you have "\" backslash in your blacklist, you have to escape it using three backslashes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;blacklist3 = New\sProcess\sName:\s+C:\\\Program\sFiles\s\(x86\)\\\......&lt;/LI-CODE&gt;&lt;P&gt;you can try it in Splunk search to find the correct regex to filter your filenames, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval _raw= "C:\Program Files (x86)\Google" | regex "C:\\\Program Files \(x86\)\\\Google"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Sun, 12 Feb 2023 06:46:25 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-02-12T06:46:25Z</dc:date>
    <item>
      <title>inputs.conf blacklist format- Is there a format that needs to be adhered to when using a blacklist with regex?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-blacklist-format-Is-there-a-format-that-needs-to-be/m-p/630552#M108076</link>
      <description>&lt;P&gt;is there a format that needs to be adhered to when using a blacklist with regex?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to format "&lt;SPAN class=""&gt;New&lt;/SPAN&gt; &lt;SPAN class=""&gt;Process&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Name&lt;/SPAN&gt;:" with a regex that will extract events from a specific data source.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;I have tested the regex with regex101 and it identifies the events that I want to filter and is basically&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;blacklist3 = New\sProcess\sName\:\s+C\:\\Program\sFiles\s\(x86\)\\......&lt;/P&gt;
&lt;P&gt;should that work or do I need to format it something more like&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;blacklist3 = New Process Name =&amp;nbsp;C\:\\Program\sFiles\s\(x86\)\\......&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;my current blacklist is resulting in&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;ExecProcessor&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;message&lt;/SPAN&gt; &lt;SPAN class=""&gt;from&lt;/SPAN&gt; ""&lt;SPAN class=""&gt;C:\Program&lt;/SPAN&gt; &lt;SPAN class=""&gt;Files\SplunkUniversalForwarder\bin\splunk-winevtlog.exe&lt;/SPAN&gt;"" &lt;SPAN class=""&gt;splunk-winevtlog&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;Processing:&lt;/SPAN&gt; '&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;blacklist3&lt;/SPAN&gt;&lt;/SPAN&gt;' [&lt;SPAN class=""&gt;legacy&lt;/SPAN&gt;], &lt;SPAN class=""&gt;range&lt;/SPAN&gt; &lt;SPAN class=""&gt;error&lt;/SPAN&gt; &lt;SPAN class=""&gt;found&lt;/SPAN&gt; &lt;SPAN class=""&gt;in 'regex'......&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;According to this document,&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.3/Data/Whitelistorblacklistspecificincomingdata" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.3/Data/Whitelistorblacklistspecificincomingdata&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;blacklist = &amp;lt;your_custom_regex&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;should work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 17:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-blacklist-format-Is-there-a-format-that-needs-to-be/m-p/630552#M108076</guid>
      <dc:creator>dolj</dc:creator>
      <dc:date>2023-02-13T17:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf blacklist format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-blacklist-format-Is-there-a-format-that-needs-to-be/m-p/630559#M108079</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/61094"&gt;@dolj&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;when you have "\" backslash in your blacklist, you have to escape it using three backslashes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;blacklist3 = New\sProcess\sName:\s+C:\\\Program\sFiles\s\(x86\)\\\......&lt;/LI-CODE&gt;&lt;P&gt;you can try it in Splunk search to find the correct regex to filter your filenames, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval _raw= "C:\Program Files (x86)\Google" | regex "C:\\\Program Files \(x86\)\\\Google"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 06:46:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-blacklist-format-Is-there-a-format-that-needs-to-be/m-p/630559#M108079</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-12T06:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf blacklist format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-blacklist-format-Is-there-a-format-that-needs-to-be/m-p/630573#M108082</link>
      <description>&lt;P&gt;Escaping with regex may make it hard to read, but luckily there is a smart way around it.&lt;BR /&gt;You can start and stop in regex with &lt;STRONG&gt;\Q&amp;nbsp;&lt;/STRONG&gt; and &lt;STRONG&gt;\E&lt;/STRONG&gt; on what you like to get&amp;nbsp;&lt;SPAN&gt;literal.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw= "C:\Program Files (x86)\Google"
| regex "\QC:\Program Files (x86)\Google\E"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This makes regex much more readable.&lt;BR /&gt;&lt;A href="https://www.regular-expressions.info/characters.html" target="_blank"&gt;https://www.regular-expressions.info/characters.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 21:07:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-blacklist-format-Is-there-a-format-that-needs-to-be/m-p/630573#M108082</guid>
      <dc:creator>jotne</dc:creator>
      <dc:date>2023-02-12T21:07:46Z</dc:date>
    </item>
  </channel>
</rss>

