<?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 Regex setting about blacklist in UF's inputs.conf in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Regex-setting-about-blacklist-in-UF-s-inputs-conf/m-p/313272#M19222</link>
    <description>&lt;P&gt;**Hi, I am collecting the data below, and I using the UF in the client. Actually I only want the data except "0_Packet_2017-05-29.txt", and I tried the blacklist to do this. However there was something wrong when I writing the blacklist regex.&lt;/P&gt;

&lt;P&gt;Text:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;40100_Packet_2017-05-29.txt
40110_Packet_2017-05-29.txt
40120_Packet_2017-05-29.txt
40130_Packet_2017-05-29.txt
40140_Packet_2017-05-29.txt
0_Packet_2017-05-29.txt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried these way but failed :&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;\d{1}_Reg_Packet_20[0-9][0-9]-[0-9][0-9]-[0-9][0-9].txt (will result the other included 0's data block, like 40100, 40110...etc)&lt;/LI&gt;
&lt;LI&gt;^\d{0}_Reg_Packet_20[0-9][0-9]-[0-9][0-9]-[0-9][0-9].txt (it  doesn't work, caused by the  0_Packet_2017-05-29.txt is not the starting line)&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Does any one have a great solution to only black the "0_Packet_2017-05-29.txt" ? Thansk for help!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 14:12:57 GMT</pubDate>
    <dc:creator>ggssa2000</dc:creator>
    <dc:date>2020-09-29T14:12:57Z</dc:date>
    <item>
      <title>Regex setting about blacklist in UF's inputs.conf</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Regex-setting-about-blacklist-in-UF-s-inputs-conf/m-p/313272#M19222</link>
      <description>&lt;P&gt;**Hi, I am collecting the data below, and I using the UF in the client. Actually I only want the data except "0_Packet_2017-05-29.txt", and I tried the blacklist to do this. However there was something wrong when I writing the blacklist regex.&lt;/P&gt;

&lt;P&gt;Text:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;40100_Packet_2017-05-29.txt
40110_Packet_2017-05-29.txt
40120_Packet_2017-05-29.txt
40130_Packet_2017-05-29.txt
40140_Packet_2017-05-29.txt
0_Packet_2017-05-29.txt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried these way but failed :&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;\d{1}_Reg_Packet_20[0-9][0-9]-[0-9][0-9]-[0-9][0-9].txt (will result the other included 0's data block, like 40100, 40110...etc)&lt;/LI&gt;
&lt;LI&gt;^\d{0}_Reg_Packet_20[0-9][0-9]-[0-9][0-9]-[0-9][0-9].txt (it  doesn't work, caused by the  0_Packet_2017-05-29.txt is not the starting line)&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Does any one have a great solution to only black the "0_Packet_2017-05-29.txt" ? Thansk for help!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:12:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Regex-setting-about-blacklist-in-UF-s-inputs-conf/m-p/313272#M19222</guid>
      <dc:creator>ggssa2000</dc:creator>
      <dc:date>2020-09-29T14:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regex setting about blacklist in UF's inputs.conf</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Regex-setting-about-blacklist-in-UF-s-inputs-conf/m-p/313273#M19223</link>
      <description>&lt;P&gt;If you're blacklisting a file named like that then it should look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [monitor:///path/to/files/*.txt]
 blacklist = \d{1}_Packet_\d{4}-\d{2}-\d{2}\.txt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There isn't a "Reg_Packet" in your example Data just "Packet"s&lt;/P&gt;

&lt;P&gt;If this is data within one file then you'll have to use SEDCMD in props like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [sourcetypeName]
 SEDCMD-redacted = s/\d{1}_Packet_\d{4}-\d{2}-\d{2}\.txt//g
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 May 2017 13:37:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Regex-setting-about-blacklist-in-UF-s-inputs-conf/m-p/313273#M19223</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-05-29T13:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Regex setting about blacklist in UF's inputs.conf</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Regex-setting-about-blacklist-in-UF-s-inputs-conf/m-p/313274#M19224</link>
      <description>&lt;P&gt;I aplogized that I didn't described the question properly.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;you're right about there is not "Reg_" in the name.&lt;/LI&gt;
&lt;LI&gt;I want to monitor the file within .txt at [monitor:///path/to/files/*.txt], and there are hundred of files with [number_Packet_year_month_day] format, and I want to monitor all of the files excluded the "0_Packet_year_month_day.txt" file.&lt;/LI&gt;
&lt;LI&gt;It doesn't work in your first suggestion
&lt;CODE&gt;blacklist = \d{1}_Packet_\d{4}-\d{2}-\d{2}\.txt&lt;/CODE&gt; caused it will block the file within 0's name, like 40100, 40110...etc, too.&lt;/LI&gt;
&lt;LI&gt;About the second suggestion, it is not data in the file, however, is the file's name. So the props.conf doesn't help in this case I guessed.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Here is a regex online website, and I put my example on there.&lt;BR /&gt;
I screenshot the result applied your blacklist regex cmd, but it doesn't work.&lt;BR /&gt;
Result: &lt;CODE&gt;&lt;A href="https://www.dropbox.com/s/8is9hhmlz7ye0v8/0_reg%20blacklist.png?dl=0" target="_blank"&gt;https://www.dropbox.com/s/8is9hhmlz7ye0v8/0_reg%20blacklist.png?dl=0&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:16:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Regex-setting-about-blacklist-in-UF-s-inputs-conf/m-p/313274#M19224</guid>
      <dc:creator>ggssa2000</dc:creator>
      <dc:date>2020-09-29T14:16:20Z</dc:date>
    </item>
  </channel>
</rss>

