<?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: Splunk Data Input Whitelist: Regex not matching in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Data-Input-Whitelist-Regex-not-matching/m-p/301838#M90881</link>
    <description>&lt;P&gt;Thanks for the response. I had tried that, but it didn't work. After creating and assigning a new index, it started to work.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jul 2017 04:03:22 GMT</pubDate>
    <dc:creator>beat_grob</dc:creator>
    <dc:date>2017-07-10T04:03:22Z</dc:date>
    <item>
      <title>Splunk Data Input Whitelist: Regex not matching</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Data-Input-Whitelist-Regex-not-matching/m-p/301836#M90879</link>
      <description>&lt;P&gt;I am trying to add a directory input monitor to Splunk. In this directory I have many different CSV files. Since there are different types of CSV files in there, I'd like to create a data input for each CSV type.&lt;/P&gt;

&lt;P&gt;The file I am trying to filter is named like this:&lt;BR /&gt;
    11046819.2017-07-07_23-26-33.messages.csv&lt;BR /&gt;
    11046868.2017-07-08_00-58-38.messages.csv&lt;/P&gt;

&lt;P&gt;The files I am trying to avoid are named like this:&lt;BR /&gt;
    11046868.1.2017-07-08_15_23_01.transform_properties.cfg.csv&lt;BR /&gt;
    11046868.1.2017-07-08_15_23_01.print_properties.cfg.csv&lt;BR /&gt;
    11046868.1.2017-07-08_15_23_01.positional_attributes.csv&lt;BR /&gt;
    11046868.1.2017-07-08_15_23_01.policy_properties.cfg.csv&lt;/P&gt;

&lt;P&gt;Currently there are 8753 files in the directory, of which only 1094 are relevant. My Splunk Data Input configuration looks like this:&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/207766-8b1f0570-dc10-491f-a9f6-3b266fece154.jpg" alt="data input configuration" /&gt;&lt;/P&gt;

&lt;P&gt;After creating the input it shows me that it found 8753 files (amounting to the total number of files in that directory). However, it did not index any records, when I search for entries from that input type, no record is being displayed.&lt;/P&gt;

&lt;P&gt;If I remove the whitelist regex all files are being indexed and I can see them in the log viewer. But that doesn't allow me to create different extraction strategies for the different CSV file types.&lt;/P&gt;

&lt;P&gt;I have also tried using "*.messages.csv" and "*messages.csv", all of which produce the same outcome. What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:49:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Data-Input-Whitelist-Regex-not-matching/m-p/301836#M90879</guid>
      <dc:creator>beat_grob</dc:creator>
      <dc:date>2020-09-29T14:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Data Input Whitelist: Regex not matching</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Data-Input-Whitelist-Regex-not-matching/m-p/301837#M90880</link>
      <description>&lt;P&gt;These two regex strings work on regex101.com with your sample file names. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.*\.messages\.csv

\d+\.\d{4}-\d{2}-\d{2}_\d{2}-\d{2}-\d{2}\.messages\.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 09 Jul 2017 18:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Data-Input-Whitelist-Regex-not-matching/m-p/301837#M90880</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-07-09T18:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Data Input Whitelist: Regex not matching</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Data-Input-Whitelist-Regex-not-matching/m-p/301838#M90881</link>
      <description>&lt;P&gt;Thanks for the response. I had tried that, but it didn't work. After creating and assigning a new index, it started to work.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 04:03:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Data-Input-Whitelist-Regex-not-matching/m-p/301838#M90881</guid>
      <dc:creator>beat_grob</dc:creator>
      <dc:date>2017-07-10T04:03:22Z</dc:date>
    </item>
  </channel>
</rss>

