<?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: Tracking if file size is 0 bytes 30 seconds after creation in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Tracking-if-file-size-is-0-bytes-30-seconds-after-creation/m-p/381787#M6339</link>
    <description>&lt;P&gt;Then how do you plan on doing this if you aren't monitoring the byte size? You should strongly consider these details before asking questions on here and wasting time&lt;/P&gt;</description>
    <pubDate>Fri, 03 Aug 2018 13:43:21 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2018-08-03T13:43:21Z</dc:date>
    <item>
      <title>Tracking if file size is 0 bytes 30 seconds after creation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Tracking-if-file-size-is-0-bytes-30-seconds-after-creation/m-p/381782#M6334</link>
      <description>&lt;P&gt;How to track if file size is 0 bytes 30 seconds after creation. Can anyone help me with this?&lt;/P&gt;

&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 09:43:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Tracking-if-file-size-is-0-bytes-30-seconds-after-creation/m-p/381782#M6334</guid>
      <dc:creator>suhanrs</dc:creator>
      <dc:date>2018-08-01T09:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking if file size is 0 bytes 30 seconds after creation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Tracking-if-file-size-is-0-bytes-30-seconds-after-creation/m-p/381783#M6335</link>
      <description>&lt;P&gt;This can be done with some conditional logic. &lt;/P&gt;

&lt;P&gt;This assumes you have a filed called &lt;CODE&gt;Creation_time&lt;/CODE&gt; which is in seconds AND have a field called &lt;CODE&gt;bytes&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Creation_time_plus_thirty='Creation_time'+30
| eval time_after_creation=if(_time&amp;gt;'Creation_time_plus_thirty',1,0)
| eval ALERT=if(time_after_creation=1 AND bytes=0,"ALERT","GOOD")
| search ALERT="ALERT"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Aug 2018 15:27:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Tracking-if-file-size-is-0-bytes-30-seconds-after-creation/m-p/381783#M6335</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-08-01T15:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking if file size is 0 bytes 30 seconds after creation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Tracking-if-file-size-is-0-bytes-30-seconds-after-creation/m-p/381784#M6336</link>
      <description>&lt;P&gt;Thank you for your help. &lt;BR /&gt;
But what search command do I have to use to get the file size if there is no field called bytes?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 03:01:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Tracking-if-file-size-is-0-bytes-30-seconds-after-creation/m-p/381784#M6336</guid>
      <dc:creator>suhanrs</dc:creator>
      <dc:date>2018-08-02T03:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking if file size is 0 bytes 30 seconds after creation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Tracking-if-file-size-is-0-bytes-30-seconds-after-creation/m-p/381785#M6337</link>
      <description>&lt;P&gt;How are you currently calculating bytes? Do you have a GB, MB, or KB field? &lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 13:30:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Tracking-if-file-size-is-0-bytes-30-seconds-after-creation/m-p/381785#M6337</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-08-02T13:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking if file size is 0 bytes 30 seconds after creation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Tracking-if-file-size-is-0-bytes-30-seconds-after-creation/m-p/381786#M6338</link>
      <description>&lt;P&gt;No, there is no any field called bytes but I need to monitor the file size of a particular path.&lt;/P&gt;

&lt;P&gt;I have tried with fschange stanza in inputs but it throws an error;&lt;BR /&gt;
FSChangeMonitor - Monitoring file or directory that doesn't exist at startup time&lt;/P&gt;

&lt;P&gt;How can I solve this?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 03:39:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Tracking-if-file-size-is-0-bytes-30-seconds-after-creation/m-p/381786#M6338</guid>
      <dc:creator>suhanrs</dc:creator>
      <dc:date>2018-08-03T03:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking if file size is 0 bytes 30 seconds after creation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Tracking-if-file-size-is-0-bytes-30-seconds-after-creation/m-p/381787#M6339</link>
      <description>&lt;P&gt;Then how do you plan on doing this if you aren't monitoring the byte size? You should strongly consider these details before asking questions on here and wasting time&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 13:43:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Tracking-if-file-size-is-0-bytes-30-seconds-after-creation/m-p/381787#M6339</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-08-03T13:43:21Z</dc:date>
    </item>
  </channel>
</rss>

