<?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 What time does @d snap to?  Does it change? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-time-does-d-snap-to-Does-it-change/m-p/519925#M146410</link>
    <description>&lt;P&gt;I am searching IIS logs, trying to calculate the number of GB transferred each day for the last 7 days.&amp;nbsp; Here is my search:&lt;/P&gt;&lt;P&gt;index=iis sourcetype=iis cs_user_agent="JTDI*" earliest=-7d@d&lt;BR /&gt;| stats sum(cs_bytes) as UPLOADS, sum(sc_bytes) as DOWNLOADS by date_mday&lt;BR /&gt;| eval UPLOADS=round(UPLOADS/1024/1024/1024,2)&lt;BR /&gt;| eval DOWNLOADS=round(DOWNLOADS/1024/1024/1024,2)&lt;BR /&gt;| rename date_mday as "Day of the Month"| sort -"Day of the Month"&lt;/P&gt;&lt;P&gt;The problem I am having is that I get a different result for the 7th day if I use &lt;A href="mailto:-7d@d" target="_blank" rel="noopener"&gt;-7d@d&lt;/A&gt;&amp;nbsp;vs &lt;A href="mailto:-8d@d" target="_blank" rel="noopener"&gt;-8d@d&lt;/A&gt;.&amp;nbsp; In both cases, every day should be the total for that day since midnight.&amp;nbsp; So when I search over 8 days, why does my 7th day have more data?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Sep 2020 13:38:01 GMT</pubDate>
    <dc:creator>DaClyde</dc:creator>
    <dc:date>2020-09-16T13:38:01Z</dc:date>
    <item>
      <title>What time does @d snap to?  Does it change?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-time-does-d-snap-to-Does-it-change/m-p/519925#M146410</link>
      <description>&lt;P&gt;I am searching IIS logs, trying to calculate the number of GB transferred each day for the last 7 days.&amp;nbsp; Here is my search:&lt;/P&gt;&lt;P&gt;index=iis sourcetype=iis cs_user_agent="JTDI*" earliest=-7d@d&lt;BR /&gt;| stats sum(cs_bytes) as UPLOADS, sum(sc_bytes) as DOWNLOADS by date_mday&lt;BR /&gt;| eval UPLOADS=round(UPLOADS/1024/1024/1024,2)&lt;BR /&gt;| eval DOWNLOADS=round(DOWNLOADS/1024/1024/1024,2)&lt;BR /&gt;| rename date_mday as "Day of the Month"| sort -"Day of the Month"&lt;/P&gt;&lt;P&gt;The problem I am having is that I get a different result for the 7th day if I use &lt;A href="mailto:-7d@d" target="_blank" rel="noopener"&gt;-7d@d&lt;/A&gt;&amp;nbsp;vs &lt;A href="mailto:-8d@d" target="_blank" rel="noopener"&gt;-8d@d&lt;/A&gt;.&amp;nbsp; In both cases, every day should be the total for that day since midnight.&amp;nbsp; So when I search over 8 days, why does my 7th day have more data?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 13:38:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-time-does-d-snap-to-Does-it-change/m-p/519925#M146410</guid>
      <dc:creator>DaClyde</dc:creator>
      <dc:date>2020-09-16T13:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: What time does @d snap to?  Does it change?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-time-does-d-snap-to-Does-it-change/m-p/519937#M146412</link>
      <description>&lt;P&gt;Tthe easiest way to see how time modifiers are used to for earliest and latest time is just run a search with non-existing index like below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="time-modifier.png" style="width: 625px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10863i935D3595F857BF88/image-size/large?v=v2&amp;amp;px=999" role="button" title="time-modifier.png" alt="time-modifier.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried your query with internal logs and I don't see a problem. 9th - 16th are common for both queries with &lt;A href="mailto:-7d@d" target="_blank"&gt;-7d@d&lt;/A&gt;&amp;nbsp;and &lt;A href="mailto:-8d@d" target="_blank"&gt;-8d@d time modifiers.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I see slight difference on 16th that could be because of new events might have come while main search is running.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="compare_8_7_days.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10864i714E93B4EC820A05/image-size/large?v=v2&amp;amp;px=999" role="button" title="compare_8_7_days.png" alt="compare_8_7_days.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 14:08:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-time-does-d-snap-to-Does-it-change/m-p/519937#M146412</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-16T14:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: What time does @d snap to?  Does it change?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-time-does-d-snap-to-Does-it-change/m-p/519946#M146414</link>
      <description>&lt;P&gt;Yes, the 16th makes sense because of on-going operations, but my problem has been with the value for the 9th.&amp;nbsp; I will try it with some other indexes and see if I still have the same problem.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 14:55:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-time-does-d-snap-to-Does-it-change/m-p/519946#M146414</guid>
      <dc:creator>DaClyde</dc:creator>
      <dc:date>2020-09-16T14:55:02Z</dc:date>
    </item>
  </channel>
</rss>

