<?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: Blacklist/ignore files by size in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Blacklist-ignore-files-by-size/m-p/214436#M42185</link>
    <description>&lt;P&gt;Thank you for adding a work around sir.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  I will give it a try, but will still leave this issue open until Splunk adds a supported solution such as a file size parameter in inputs.conf.  Thanks again.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2016 21:50:19 GMT</pubDate>
    <dc:creator>TonyLeeVT</dc:creator>
    <dc:date>2016-02-22T21:50:19Z</dc:date>
    <item>
      <title>Blacklist/ignore files by size</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklist-ignore-files-by-size/m-p/214433#M42182</link>
      <description>&lt;P&gt;When monitoring a directory for files (using inputs.conf) is it possible to blacklist or ignore files over a certain size?  Say for instance a few files get dropped in that are 100 MB in size or more.  Splunk usually errors after processing these anyway.  Can I ignore processing these larger files?  Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2016 18:15:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklist-ignore-files-by-size/m-p/214433#M42182</guid>
      <dc:creator>TonyLeeVT</dc:creator>
      <dc:date>2016-02-21T18:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist/ignore files by size</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklist-ignore-files-by-size/m-p/214434#M42183</link>
      <description>&lt;P&gt;I don't think there is a native way to ignore files based on their size. On the other hand, Splunk can monitor files much larger than 100 MBs so could you tell us more about "Splunk usually errors after processing these anyway'??&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2016 19:31:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklist-ignore-files-by-size/m-p/214434#M42183</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-21T19:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist/ignore files by size</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklist-ignore-files-by-size/m-p/214435#M42184</link>
      <description>&lt;P&gt;I have used the following hack to solve this problem:&lt;/P&gt;

&lt;P&gt;Create a new directory somewhere else (/destination/path/) and point the Splunk forwarder there. Then setup a cron job that creates selective soft links to files pointing to the real directory (/source/path/) for any file that meets your "keep" criteria, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*/5 * * * * cd /source/file/path/ &amp;amp;&amp;amp; /bin/find . -maxdepth 1 -type f -size -100M | /bin/sed "s/^..//" | /usr/bin/xargs -I {} /bin/ln -fs /source/path/{} /destination/path/{}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Don't forget to setup a 2nd cron to delete the broken softlinks (source files have been deleted), too, or you will end up with tens of thousands of files here, too.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 18:27:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklist-ignore-files-by-size/m-p/214435#M42184</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-02-22T18:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist/ignore files by size</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklist-ignore-files-by-size/m-p/214436#M42185</link>
      <description>&lt;P&gt;Thank you for adding a work around sir.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  I will give it a try, but will still leave this issue open until Splunk adds a supported solution such as a file size parameter in inputs.conf.  Thanks again.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 21:50:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklist-ignore-files-by-size/m-p/214436#M42185</guid>
      <dc:creator>TonyLeeVT</dc:creator>
      <dc:date>2016-02-22T21:50:19Z</dc:date>
    </item>
  </channel>
</rss>

