<?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: Regex in Whitelist, in inputs.conf regex help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-in-Whitelist-in-inputs-conf-regex-help/m-p/313919#M93955</link>
    <description>&lt;P&gt;Just use like this&lt;BR /&gt;
&lt;STRONG&gt;Fixed typo&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:////wsbbat/web/dev/logs/web-error.log*]
index=web_dev
sourcetype = log4j
source = web_errors

[monitor:////wsbbat/web/dev/logs/web-fatal.log*]
index=web_dev
sourcetype = log4j
source = web_fatal
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 27 Feb 2018 16:52:34 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-02-27T16:52:34Z</dc:date>
    <item>
      <title>Regex in Whitelist, in inputs.conf regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-in-Whitelist-in-inputs-conf-regex-help/m-p/313918#M93954</link>
      <description>&lt;P&gt;I'm trying to monitor log files within my application for the error &amp;amp; fatal logs,  which can look like&lt;BR /&gt;
web-error.log&lt;BR /&gt;
web-error.log2018-02-01&lt;BR /&gt;
web-error.log2018-02-02&lt;BR /&gt;
web-error.log2018-02-02&lt;/P&gt;

&lt;P&gt;There's other types of logs in the same directory that follows similar pattern such as web-info.log, web-debug.log, web-warn.log. For now, I'm having issues setting up monitoring just the web.log and all its archived logs. &lt;/P&gt;

&lt;P&gt;My inputs.conf is setup with this:&lt;BR /&gt;
[monitor:////wsbbat/web/dev/logs]&lt;BR /&gt;
index=web_dev&lt;BR /&gt;
sourcetype = log4j&lt;BR /&gt;
source = web_errors&lt;BR /&gt;
whitelist = web-error.log*&lt;BR /&gt;
crcSalt = &lt;/P&gt;

&lt;P&gt;[monitor:////wsbbat/web/dev/logs]&lt;BR /&gt;
index=web_dev&lt;BR /&gt;
sourcetype = log4j&lt;BR /&gt;
source = web_fatal&lt;BR /&gt;
whitelist = web-fatal.log*&lt;BR /&gt;
crcSalt = &lt;/P&gt;

&lt;P&gt;I've tried other whitelist pattern such as ones below but none of these patterns seems to work&lt;BR /&gt;&lt;BR /&gt;
whitelist = web-error.log$|web.log\d{4}-\d{2}-\d{2}&lt;BR /&gt;
whitelist = web-error.log$|web.log\d{4}-\d{2}-\d{2}$&lt;BR /&gt;
whitelist = web-error.log$|web.log[0-9-]+&lt;BR /&gt;
whitelist = web-error.log$|web.log.*&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:12:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-in-Whitelist-in-inputs-conf-regex-help/m-p/313918#M93954</guid>
      <dc:creator>aa70627</dc:creator>
      <dc:date>2020-09-29T18:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regex in Whitelist, in inputs.conf regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-in-Whitelist-in-inputs-conf-regex-help/m-p/313919#M93955</link>
      <description>&lt;P&gt;Just use like this&lt;BR /&gt;
&lt;STRONG&gt;Fixed typo&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:////wsbbat/web/dev/logs/web-error.log*]
index=web_dev
sourcetype = log4j
source = web_errors

[monitor:////wsbbat/web/dev/logs/web-fatal.log*]
index=web_dev
sourcetype = log4j
source = web_fatal
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Feb 2018 16:52:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-in-Whitelist-in-inputs-conf-regex-help/m-p/313919#M93955</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-02-27T16:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Regex in Whitelist, in inputs.conf regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-in-Whitelist-in-inputs-conf-regex-help/m-p/313920#M93956</link>
      <description>&lt;P&gt;BTW thanks. Trying it out now. &lt;/P&gt;

&lt;P&gt;is the second one a typo&lt;BR /&gt;
 [monitor:////wsbbat/web/dev/logs/whitelist = web-fatal.log*]&lt;/P&gt;

&lt;P&gt;did you mean &lt;BR /&gt;
 [monitor:////wsbbat/web/dev/logs/web-error.log*]&lt;BR /&gt;
 index=web_dev&lt;BR /&gt;
 sourcetype = log4j&lt;BR /&gt;
 source = web_errors&lt;/P&gt;

&lt;P&gt;[monitor:////wsbbat/web/dev/logs/web-fatal.log*]&lt;BR /&gt;
 index=web_dev&lt;BR /&gt;
 sourcetype = log4j&lt;BR /&gt;
 source = web_fatal&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:13:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-in-Whitelist-in-inputs-conf-regex-help/m-p/313920#M93956</guid>
      <dc:creator>aa70627</dc:creator>
      <dc:date>2020-09-29T18:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regex in Whitelist, in inputs.conf regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-in-Whitelist-in-inputs-conf-regex-help/m-p/313921#M93957</link>
      <description>&lt;P&gt;Looks like it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 17:54:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-in-Whitelist-in-inputs-conf-regex-help/m-p/313921#M93957</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-02-27T17:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Regex in Whitelist, in inputs.conf regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-in-Whitelist-in-inputs-conf-regex-help/m-p/313922#M93958</link>
      <description>&lt;P&gt;Thanks that worked for me. &lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:15:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-in-Whitelist-in-inputs-conf-regex-help/m-p/313922#M93958</guid>
      <dc:creator>aa70627</dc:creator>
      <dc:date>2018-03-01T15:15:48Z</dc:date>
    </item>
  </channel>
</rss>

