<?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: whitelist regex help with multiple strings in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450106#M127457</link>
    <description>&lt;P&gt;I am aware of doing it this way, but it does make the length/size of the inputs.conf file much larger and a little harder to manage. But I do appreciate the response. I really wanted to understand the REGEX component so I can utilize the whitelist function.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2019 14:01:44 GMT</pubDate>
    <dc:creator>joesrepsolc</dc:creator>
    <dc:date>2019-03-20T14:01:44Z</dc:date>
    <item>
      <title>whitelist regex help with multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450103#M127454</link>
      <description>&lt;P&gt;Trying to build a rather simple inputs.conf (or so i thought) to grab two statis named files, and the last file has a date built in, so I want to get them all, and any new ones that get created moving forward. I only need help with the whitelist part of the inputs, but can't seem to figure out the combo to get this to work.&lt;/P&gt;

&lt;P&gt;catalina.out&lt;BR /&gt;
vpAppLogClient.log&lt;BR /&gt;
localhost_access_log.2019-03-19.txt (this one changes everyday)&lt;/P&gt;

&lt;P&gt;[monitor:///opt/web/tomcatA/logs]&lt;BR /&gt;
index = web&lt;BR /&gt;
sourcetype = tomcat_logs&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
whitelist = /catalina.out$|/vpAppLogClient.log$|?????&lt;/P&gt;

&lt;P&gt;Apprecaite the help everyone!!!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:46:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450103#M127454</guid>
      <dc:creator>joesrepsolc</dc:creator>
      <dc:date>2020-09-29T23:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: whitelist regex help with multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450104#M127455</link>
      <description>&lt;P&gt;Hello @joesrepsolc,&lt;/P&gt;

&lt;P&gt;I think it is easier here to create multiple monitor stanzas without the whitelist option:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/web/tomcatA/logs/catalina.out]
index = web
...

[monitor:///opt/web/tomcatA/logs/vpAppLogClient.log]
index = web
...

[monitor:///opt/web/tomcatA/logs/localhost_access_log.*.txt]
index = web
...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Mar 2019 08:07:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450104#M127455</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2019-03-20T08:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: whitelist regex help with multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450105#M127456</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Instead of creating multiple stanza, you can create single monitor input with regex. That regex will capture &lt;CODE&gt;catalina.out&lt;/CODE&gt; , &lt;CODE&gt;vpAppLogClient.log&lt;/CODE&gt; and &lt;CODE&gt;localhost_access_log.YYYY-MM-DD.txt&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/web/tomcatA/logs]
index = web
sourcetype = tomcat_logs
disabled = 0
whitelist = (catalina\.out|vpAppLogClient\.log|localhost_access_log\.\d{4}\-\d{2}\-\d{2}\.txt)$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT: Fixed typo&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 09:19:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450105#M127456</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-20T09:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: whitelist regex help with multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450106#M127457</link>
      <description>&lt;P&gt;I am aware of doing it this way, but it does make the length/size of the inputs.conf file much larger and a little harder to manage. But I do appreciate the response. I really wanted to understand the REGEX component so I can utilize the whitelist function.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 14:01:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450106#M127457</guid>
      <dc:creator>joesrepsolc</dc:creator>
      <dc:date>2019-03-20T14:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: whitelist regex help with multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450107#M127458</link>
      <description>&lt;P&gt;Trying this now, but hoping that it works! Reading thru the regex you posted... interesting stuff. &lt;/P&gt;

&lt;P&gt;Question: Why do I need the "(" and ")" parenthesis around the statement? I missed that on one of my attempts. I also missed the "$" at the end, but was doing that on the end of each file name. Hmmm. Clearly I don't know regex well enough.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 14:06:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450107#M127458</guid>
      <dc:creator>joesrepsolc</dc:creator>
      <dc:date>2019-03-20T14:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: whitelist regex help with multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450108#M127459</link>
      <description>&lt;P&gt;In regex &lt;CODE&gt;()&lt;/CODE&gt; is capturing groups but in this monitor stanza there is no difference if we use capturing group or non-capturing group &lt;CODE&gt;(?:)&lt;/CODE&gt;. I have used &lt;CODE&gt;()&lt;/CODE&gt; because I am using OR &lt;CODE&gt;|&lt;/CODE&gt; and ending with &lt;CODE&gt;$&lt;/CODE&gt; for all 3 files in common. &lt;CODE&gt;$&lt;/CODE&gt; is end of line&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 14:11:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450108#M127459</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-20T14:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: whitelist regex help with multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450109#M127460</link>
      <description>&lt;P&gt;Thanks for the quick response. And THIS WORKED. Super cool. Thank you everyone.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 14:33:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450109#M127460</guid>
      <dc:creator>joesrepsolc</dc:creator>
      <dc:date>2019-03-20T14:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: whitelist regex help with multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450110#M127461</link>
      <description>&lt;P&gt;Welcome  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 14:36:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/whitelist-regex-help-with-multiple-strings/m-p/450110#M127461</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-20T14:36:27Z</dc:date>
    </item>
  </channel>
</rss>

