<?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 Manage data for Sunday in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Manage-data-for-Sunday/m-p/532589#M10046</link>
    <description>&lt;P&gt;Hello,I have this query..&lt;/P&gt;&lt;P&gt;index="dpsn_students" earliest=0 latest=now suspended=false AND (class= "*" OR class= "* *")&lt;BR /&gt;| dedup primaryEmail&lt;BR /&gt;| rename primaryEmail as email&lt;BR /&gt;| eval class=upper(class)&lt;BR /&gt;| join type=outer email&lt;BR /&gt;[ search index="dpsn_meet"&lt;BR /&gt;| rex field=date "(?&amp;lt;yy&amp;gt;[^\.]*)\-(?&amp;lt;mm&amp;gt;[^\.]*)\-(?&amp;lt;dd&amp;gt;[\S]*)T(?&amp;lt;hh&amp;gt;[^\.]*)\:(?&amp;lt;min&amp;gt;[^\.]*)\:(?&amp;lt;sec&amp;gt;[^\.]*)\."&lt;BR /&gt;| eval ndatetime = yy.mm.dd.hh.min.sec&lt;BR /&gt;| eval _time=strptime(ndatetime,"%Y%m%d%H%M%S") + 19800&lt;BR /&gt;| eval Time = strftime(_time, "%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| eval Duration = duration_seconds/60&lt;BR /&gt;| stats sum(Duration) as tot by email]&lt;BR /&gt;| join type=outer class&lt;BR /&gt;[ search index="dpsnapitt" AND (class= "*" OR class= "* *") AND day="DAY 1" | stats count as Total by class&lt;BR /&gt;| eval class_time=Total*30]&lt;BR /&gt;| fillnull value="0"&lt;BR /&gt;| where class!="0"&lt;BR /&gt;| eval m=0.75&lt;BR /&gt;| eval p=1&lt;BR /&gt;| eval n=class_time&lt;BR /&gt;| eval o=m*n*p&lt;BR /&gt;| where tot &amp;gt;= o&lt;BR /&gt;| stats count as "Total"&lt;/P&gt;&lt;P&gt;If I run this query on Monday with the time range of last 31 hours before 2pm, some data is coming but it should be 0 as there is no school on Sunday. At 2pm on Monday, cron job is done but I dont know how to handle it before 2pm.&lt;/P&gt;&lt;P&gt;Pleases help.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 06:25:43 GMT</pubDate>
    <dc:creator>sweety1309</dc:creator>
    <dc:date>2020-12-10T06:25:43Z</dc:date>
    <item>
      <title>Manage data for Sunday</title>
      <link>https://community.splunk.com/t5/Alerting/Manage-data-for-Sunday/m-p/532589#M10046</link>
      <description>&lt;P&gt;Hello,I have this query..&lt;/P&gt;&lt;P&gt;index="dpsn_students" earliest=0 latest=now suspended=false AND (class= "*" OR class= "* *")&lt;BR /&gt;| dedup primaryEmail&lt;BR /&gt;| rename primaryEmail as email&lt;BR /&gt;| eval class=upper(class)&lt;BR /&gt;| join type=outer email&lt;BR /&gt;[ search index="dpsn_meet"&lt;BR /&gt;| rex field=date "(?&amp;lt;yy&amp;gt;[^\.]*)\-(?&amp;lt;mm&amp;gt;[^\.]*)\-(?&amp;lt;dd&amp;gt;[\S]*)T(?&amp;lt;hh&amp;gt;[^\.]*)\:(?&amp;lt;min&amp;gt;[^\.]*)\:(?&amp;lt;sec&amp;gt;[^\.]*)\."&lt;BR /&gt;| eval ndatetime = yy.mm.dd.hh.min.sec&lt;BR /&gt;| eval _time=strptime(ndatetime,"%Y%m%d%H%M%S") + 19800&lt;BR /&gt;| eval Time = strftime(_time, "%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| eval Duration = duration_seconds/60&lt;BR /&gt;| stats sum(Duration) as tot by email]&lt;BR /&gt;| join type=outer class&lt;BR /&gt;[ search index="dpsnapitt" AND (class= "*" OR class= "* *") AND day="DAY 1" | stats count as Total by class&lt;BR /&gt;| eval class_time=Total*30]&lt;BR /&gt;| fillnull value="0"&lt;BR /&gt;| where class!="0"&lt;BR /&gt;| eval m=0.75&lt;BR /&gt;| eval p=1&lt;BR /&gt;| eval n=class_time&lt;BR /&gt;| eval o=m*n*p&lt;BR /&gt;| where tot &amp;gt;= o&lt;BR /&gt;| stats count as "Total"&lt;/P&gt;&lt;P&gt;If I run this query on Monday with the time range of last 31 hours before 2pm, some data is coming but it should be 0 as there is no school on Sunday. At 2pm on Monday, cron job is done but I dont know how to handle it before 2pm.&lt;/P&gt;&lt;P&gt;Pleases help.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 06:25:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Manage-data-for-Sunday/m-p/532589#M10046</guid>
      <dc:creator>sweety1309</dc:creator>
      <dc:date>2020-12-10T06:25:43Z</dc:date>
    </item>
  </channel>
</rss>

