<?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 Whitelist not matching in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Whitelist-not-matching/m-p/56636#M11026</link>
    <description>&lt;P&gt;I have a whitelist to limit how far back splunk looks to import our syslogs from our ASA. The regex that I am using is ^(ASA_Syslog_)(|2009|20[1-9][0-9])-(0[1-9]|1[012])-([123]0|[012][1-9]|31).(txt|zip)$&lt;/P&gt;

&lt;P&gt;When I look a the admin/inpustatus, it states that every file does not match the whitelist. But when I run the regex test on a few regex test web sites, they all say it matches. &lt;/P&gt;

&lt;P&gt;s:key name="e:\syslog\ASA\ASA_Syslog_2011-03-09.txt"&lt;BR /&gt;
s:dict&lt;BR /&gt;
s:key name="parent"&amp;gt;e:\syslog\ASA
s:key name="type"&amp;gt;Did not match whitelist '^(ASA_Syslog_)(|2009|20[1-9][0-9])-(0[1-9]|1[012])-([123]0|[012][1-9]|31).(txt|zip)$'. /s:key&lt;BR /&gt;
/s:dict  &lt;/P&gt;

&lt;P&gt;(&amp;lt;&amp;gt; removed so this will show in question)&lt;/P&gt;

&lt;P&gt;Am i missing something? Do  I need to include the file path in the regex for the white list?&lt;/P&gt;

&lt;P&gt;My inputs.conf looks like this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[monitor://e:\syslog\ASA]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
followTail = 0&lt;BR /&gt;
host = ASA&lt;BR /&gt;
index = cisco_asa&lt;BR /&gt;
sourcetype = cisco_syslog&lt;BR /&gt;
whitelist = ^(ASA_Syslog_)(|2009|20[1-9][0-9])-(0[1-9]|1[012])-([123]0|[012][1-9]|31).(txt|zip)$&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2011 03:45:42 GMT</pubDate>
    <dc:creator>ejbrownie</dc:creator>
    <dc:date>2011-03-10T03:45:42Z</dc:date>
    <item>
      <title>Whitelist not matching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Whitelist-not-matching/m-p/56636#M11026</link>
      <description>&lt;P&gt;I have a whitelist to limit how far back splunk looks to import our syslogs from our ASA. The regex that I am using is ^(ASA_Syslog_)(|2009|20[1-9][0-9])-(0[1-9]|1[012])-([123]0|[012][1-9]|31).(txt|zip)$&lt;/P&gt;

&lt;P&gt;When I look a the admin/inpustatus, it states that every file does not match the whitelist. But when I run the regex test on a few regex test web sites, they all say it matches. &lt;/P&gt;

&lt;P&gt;s:key name="e:\syslog\ASA\ASA_Syslog_2011-03-09.txt"&lt;BR /&gt;
s:dict&lt;BR /&gt;
s:key name="parent"&amp;gt;e:\syslog\ASA
s:key name="type"&amp;gt;Did not match whitelist '^(ASA_Syslog_)(|2009|20[1-9][0-9])-(0[1-9]|1[012])-([123]0|[012][1-9]|31).(txt|zip)$'. /s:key&lt;BR /&gt;
/s:dict  &lt;/P&gt;

&lt;P&gt;(&amp;lt;&amp;gt; removed so this will show in question)&lt;/P&gt;

&lt;P&gt;Am i missing something? Do  I need to include the file path in the regex for the white list?&lt;/P&gt;

&lt;P&gt;My inputs.conf looks like this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[monitor://e:\syslog\ASA]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
followTail = 0&lt;BR /&gt;
host = ASA&lt;BR /&gt;
index = cisco_asa&lt;BR /&gt;
sourcetype = cisco_syslog&lt;BR /&gt;
whitelist = ^(ASA_Syslog_)(|2009|20[1-9][0-9])-(0[1-9]|1[012])-([123]0|[012][1-9]|31).(txt|zip)$&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2011 03:45:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Whitelist-not-matching/m-p/56636#M11026</guid>
      <dc:creator>ejbrownie</dc:creator>
      <dc:date>2011-03-10T03:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Whitelist not matching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Whitelist-not-matching/m-p/56637#M11027</link>
      <description>&lt;P&gt;I believe the issue is the "^" in your regex is causing the issue expecting the absolute path to start at ASA_Syslog.  Try taking that out.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Oct 2013 02:49:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Whitelist-not-matching/m-p/56637#M11027</guid>
      <dc:creator>mikelanghorst</dc:creator>
      <dc:date>2013-10-06T02:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Whitelist not matching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Whitelist-not-matching/m-p/56638#M11028</link>
      <description>&lt;P&gt;Looking at the monitor stanza versus regex, I would also do this:&lt;/P&gt;

&lt;P&gt;[monitor://e:\syslog\ASA\ASA_Syslog_*]&lt;BR /&gt;
...&lt;BR /&gt;
whitelist = (|2009|20[1-9][0-9])-(0[1-9]|1[012])-([123]0|[012][1-9]|31).&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Whitelist-not-matching/m-p/56638#M11028</guid>
      <dc:creator>jspears</dc:creator>
      <dc:date>2020-09-28T14:54:23Z</dc:date>
    </item>
  </channel>
</rss>

