<?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 Manager » Data inputs » Files &amp; directories » /var/log  &amp;gt;&amp;gt; Blacklist in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Manager-Data-inputs-Files-directories-var-log-gt-gt-Blacklist/m-p/91337#M18987</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I try to setup a prevention filter so that Spunk isn't collection data by accident on the Server side. I found there is a blacklist option under : &lt;/P&gt;

&lt;P&gt;Manager » Data inputs » Files &amp;amp; directories » /var/log  &amp;gt;&amp;gt; Blacklist  &lt;/P&gt;

&lt;P&gt;(lastlog|munin.&lt;EM&gt;|driveclient.&lt;/EM&gt;|.(gz|zip|htm|html|z|bz2|[0-9])$)&lt;/P&gt;

&lt;P&gt;and I saw that lastlog was already blacklist, but I need to blacklist a bunch more because I don't like to collect data twice because of the log rotation from linux but also munin (/var/log/munin/) dumps a lot of data which I try to exclude as well.&lt;/P&gt;

&lt;P&gt;So I created this filter but I do have a feeling that I overlook or miss out on something. What do I miss here with this filter :&lt;/P&gt;

&lt;P&gt;(lastlog|munin.&lt;EM&gt;|driveclient.&lt;/EM&gt;|.(gz|zip|htm|html|z|bz2|[0-9])$)&lt;/P&gt;

&lt;P&gt;if I do an ls in my /var/log folder I do have this : &lt;/P&gt;

&lt;P&gt;10.177.127.70.log   daemon.log.3.gz    lpr.log         nginx&lt;BR /&gt;
10.20.4.1.log       daemon.log.4.gz    mail.err        nova-agent.log&lt;BR /&gt;
alternatives.log    dbconfig-common    mail.info       ntpstats&lt;BR /&gt;
alternatives.log.1  debug              mail.log        oxy-temp-path&lt;BR /&gt;
apt                 debug.1            mail.log.1      passenger-analytics&lt;BR /&gt;
aptitude            debug.2.gz         mail.log.2.gz   php5-fpm.log&lt;BR /&gt;
auth.log            debug.3.gz         mail.log.3.gz   pycentral.log&lt;BR /&gt;
auth.log.1          debug.4.gz         mail.log.4.gz   redis&lt;BR /&gt;
auth.log.2.gz       dist-upgrade       mail.warn       samba&lt;BR /&gt;
auth.log.3.gz       dmesg              mckick          syslog&lt;BR /&gt;
auth.log.4.gz       dpkg.log           messages        syslog.1&lt;BR /&gt;
boot                dpkg.log.1         messages.1      syslog.2.gz&lt;BR /&gt;
boot.log            dpkg.log.2.gz      messages.2.gz   syslog.3.gz&lt;BR /&gt;
bootstrap.log       driveclient.log    messages.3.gz   syslog.4.gz&lt;BR /&gt;
btmp                error              messages.4.gz   syslog.5.gz&lt;BR /&gt;
btmp.1.gz           fail2ban.log       munin           syslog.6.gz&lt;BR /&gt;
chkrootkit          fail2ban.log.1     mysql           syslog.7.gz&lt;BR /&gt;
clamav              fail2ban.log.2.gz  mysql.err       sysstat&lt;BR /&gt;
ConsoleKit          fail2ban.log.3.gz  mysql.log       tallylog&lt;BR /&gt;
cron.log            fail2ban.log.4.gz  mysql.log.1.gz  tiger&lt;BR /&gt;
cron.log.1          faillog            mysql.log.2.gz  udev&lt;BR /&gt;
cron.log.2.gz       fontconfig.log     mysql.log.3.gz  ufw.log&lt;BR /&gt;
cron.log.3.gz       fsck               mysql.log.4.gz  unattended-upgrades&lt;BR /&gt;
cron.log.4.gz       jcard              mysql.log.5.gz  upstart&lt;BR /&gt;
daemon.log          kern.log           mysql.log.6.gz  user.log&lt;BR /&gt;
daemon.log.1        kern.log.1         mysql.log.7.gz  wtmp&lt;BR /&gt;
daemon.log.2.gz     lastlog            news            wtmp.1.gz&lt;/P&gt;

&lt;P&gt;thx &lt;/P&gt;

&lt;P&gt;Olaf &lt;/P&gt;</description>
    <pubDate>Thu, 17 Jan 2013 21:13:57 GMT</pubDate>
    <dc:creator>olafbecker</dc:creator>
    <dc:date>2013-01-17T21:13:57Z</dc:date>
    <item>
      <title>Manager » Data inputs » Files &amp; directories » /var/log  &gt;&gt; Blacklist</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Manager-Data-inputs-Files-directories-var-log-gt-gt-Blacklist/m-p/91337#M18987</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I try to setup a prevention filter so that Spunk isn't collection data by accident on the Server side. I found there is a blacklist option under : &lt;/P&gt;

&lt;P&gt;Manager » Data inputs » Files &amp;amp; directories » /var/log  &amp;gt;&amp;gt; Blacklist  &lt;/P&gt;

&lt;P&gt;(lastlog|munin.&lt;EM&gt;|driveclient.&lt;/EM&gt;|.(gz|zip|htm|html|z|bz2|[0-9])$)&lt;/P&gt;

&lt;P&gt;and I saw that lastlog was already blacklist, but I need to blacklist a bunch more because I don't like to collect data twice because of the log rotation from linux but also munin (/var/log/munin/) dumps a lot of data which I try to exclude as well.&lt;/P&gt;

&lt;P&gt;So I created this filter but I do have a feeling that I overlook or miss out on something. What do I miss here with this filter :&lt;/P&gt;

&lt;P&gt;(lastlog|munin.&lt;EM&gt;|driveclient.&lt;/EM&gt;|.(gz|zip|htm|html|z|bz2|[0-9])$)&lt;/P&gt;

&lt;P&gt;if I do an ls in my /var/log folder I do have this : &lt;/P&gt;

&lt;P&gt;10.177.127.70.log   daemon.log.3.gz    lpr.log         nginx&lt;BR /&gt;
10.20.4.1.log       daemon.log.4.gz    mail.err        nova-agent.log&lt;BR /&gt;
alternatives.log    dbconfig-common    mail.info       ntpstats&lt;BR /&gt;
alternatives.log.1  debug              mail.log        oxy-temp-path&lt;BR /&gt;
apt                 debug.1            mail.log.1      passenger-analytics&lt;BR /&gt;
aptitude            debug.2.gz         mail.log.2.gz   php5-fpm.log&lt;BR /&gt;
auth.log            debug.3.gz         mail.log.3.gz   pycentral.log&lt;BR /&gt;
auth.log.1          debug.4.gz         mail.log.4.gz   redis&lt;BR /&gt;
auth.log.2.gz       dist-upgrade       mail.warn       samba&lt;BR /&gt;
auth.log.3.gz       dmesg              mckick          syslog&lt;BR /&gt;
auth.log.4.gz       dpkg.log           messages        syslog.1&lt;BR /&gt;
boot                dpkg.log.1         messages.1      syslog.2.gz&lt;BR /&gt;
boot.log            dpkg.log.2.gz      messages.2.gz   syslog.3.gz&lt;BR /&gt;
bootstrap.log       driveclient.log    messages.3.gz   syslog.4.gz&lt;BR /&gt;
btmp                error              messages.4.gz   syslog.5.gz&lt;BR /&gt;
btmp.1.gz           fail2ban.log       munin           syslog.6.gz&lt;BR /&gt;
chkrootkit          fail2ban.log.1     mysql           syslog.7.gz&lt;BR /&gt;
clamav              fail2ban.log.2.gz  mysql.err       sysstat&lt;BR /&gt;
ConsoleKit          fail2ban.log.3.gz  mysql.log       tallylog&lt;BR /&gt;
cron.log            fail2ban.log.4.gz  mysql.log.1.gz  tiger&lt;BR /&gt;
cron.log.1          faillog            mysql.log.2.gz  udev&lt;BR /&gt;
cron.log.2.gz       fontconfig.log     mysql.log.3.gz  ufw.log&lt;BR /&gt;
cron.log.3.gz       fsck               mysql.log.4.gz  unattended-upgrades&lt;BR /&gt;
cron.log.4.gz       jcard              mysql.log.5.gz  upstart&lt;BR /&gt;
daemon.log          kern.log           mysql.log.6.gz  user.log&lt;BR /&gt;
daemon.log.1        kern.log.1         mysql.log.7.gz  wtmp&lt;BR /&gt;
daemon.log.2.gz     lastlog            news            wtmp.1.gz&lt;/P&gt;

&lt;P&gt;thx &lt;/P&gt;

&lt;P&gt;Olaf &lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2013 21:13:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Manager-Data-inputs-Files-directories-var-log-gt-gt-Blacklist/m-p/91337#M18987</guid>
      <dc:creator>olafbecker</dc:creator>
      <dc:date>2013-01-17T21:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Manager » Data inputs » Files &amp; directories » /var/log  &gt;&gt; Blacklist</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Manager-Data-inputs-Files-directories-var-log-gt-gt-Blacklist/m-p/91338#M18988</link>
      <description>&lt;P&gt;I would recommend checking out a REGEX tester like: &lt;A href="http://regexpal.com/"&gt;http://regexpal.com/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;On this web site, if we put this in the first box (the regex box):&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;(lastlog|munin.|driveclient.|.(gz|zip|htm|html|z|bz2|[0-9])$)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;And this in the second box (the text to test on):&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
10.177.127.70.log&lt;BR /&gt;
daemon.log.3.gz&lt;BR /&gt;
lpr.log&lt;BR /&gt;
nginx&lt;BR /&gt;
10.20.4.1.log&lt;BR /&gt;
daemon.log.4.gz&lt;BR /&gt;
mail.err&lt;BR /&gt;
nova-agent.log&lt;BR /&gt;
alternatives.log&lt;BR /&gt;
dbconfig-common&lt;BR /&gt;
mail.info&lt;BR /&gt;
ntpstats&lt;BR /&gt;
alternatives.log.1&lt;BR /&gt;
debug&lt;BR /&gt;
mail.log&lt;BR /&gt;
oxy-temp-path&lt;BR /&gt;
apt&lt;BR /&gt;
debug.1&lt;BR /&gt;
mail.log.1&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You will see the following files have highlighting:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
daemon.log.3.gz&lt;BR /&gt;
daemon.log.4.g&lt;BR /&gt;
alternatives.log.1&lt;BR /&gt;
debug.1&lt;BR /&gt;
mail.log.1&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You can reasonably assume that these files with highlighting will be caught by your blacklist and ignored by Splunk.&lt;/P&gt;

&lt;P&gt;A few notes though:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;You will want your file list to be one file per line&lt;/LI&gt;
&lt;LI&gt;The full file name won't be highlighted, so don't worry about that.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 17 Jan 2013 22:09:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Manager-Data-inputs-Files-directories-var-log-gt-gt-Blacklist/m-p/91338#M18988</guid>
      <dc:creator>jlanders</dc:creator>
      <dc:date>2013-01-17T22:09:52Z</dc:date>
    </item>
  </channel>
</rss>

