<?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: Odd occurence with snapping time in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Odd-occurence-with-snapping-time/m-p/290758#M39904</link>
    <description>&lt;P&gt;All times of all events ingested are in UTC. I can't post the actual search due to corporate constraints, but for sake of argument, this should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;
    index=someIndex
    | eval several fields
    | timechart span=1mon sum(field_0) as first sum(field_1) as second
&amp;lt;/query&amp;gt;
&amp;lt;earliest&amp;gt;-3mon@mon&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;@mon&amp;lt;/latest&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;as Isaid earlier, I also tried @mon-1d and there was no change&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2018 17:05:30 GMT</pubDate>
    <dc:creator>richkappler</dc:creator>
    <dc:date>2018-02-19T17:05:30Z</dc:date>
    <item>
      <title>Odd occurence with snapping time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Odd-occurence-with-snapping-time/m-p/290754#M39900</link>
      <description>&lt;P&gt;I have a search I'm turning into a panel for a pre-existing dashboard. On that dash I have used snap time successfullynumerous times:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;earliest&amp;gt;-6mon@mon&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;@mon&amp;lt;/latest&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which obviously just gives me the previous 6 calendar months. In this new panel I'm adding, I want the previous 3 calendar months, so I'm using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;earliest&amp;gt;-3mon@mon&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;@mon&amp;lt;/latest&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;No brainer. But it's giving me Nov, Dec, Jan, and Feb 1. wtf??? Any ideas what might be going on here?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 16:01:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Odd-occurence-with-snapping-time/m-p/290754#M39900</guid>
      <dc:creator>richkappler</dc:creator>
      <dc:date>2018-02-19T16:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Odd occurence with snapping time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Odd-occurence-with-snapping-time/m-p/290755#M39901</link>
      <description>&lt;P&gt;@richkappler, are you looking for the following:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;earliest&amp;gt;-6mon@mon&amp;lt;/earliest&amp;gt;&lt;/CODE&gt; i.e. &lt;CODE&gt;8/1/17 12:00:00.000 AM&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;latest&amp;gt;@mon-1d&amp;lt;/latest&amp;gt;&lt;/CODE&gt; i.e. &lt;CODE&gt;1/31/18 12:00:00.000 AM&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;earliest&amp;gt;-3mon@mon&amp;lt;/earliest&amp;gt;&lt;/CODE&gt; i.e. &lt;CODE&gt;11/1/17 12:00:00.000 AM&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;latest&amp;gt;@mon-1d&amp;lt;/latest&amp;gt;&lt;/CODE&gt; i.e. &lt;CODE&gt;1/31/18 12:00:00.000 AM&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 16:13:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Odd-occurence-with-snapping-time/m-p/290755#M39901</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-02-19T16:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Odd occurence with snapping time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Odd-occurence-with-snapping-time/m-p/290756#M39902</link>
      <description>&lt;P&gt;@mon-1d was the first thing I tried before rbinging the issue here. Made no difference.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 16:15:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Odd-occurence-with-snapping-time/m-p/290756#M39902</guid>
      <dc:creator>richkappler</dc:creator>
      <dc:date>2018-02-19T16:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Odd occurence with snapping time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Odd-occurence-with-snapping-time/m-p/290757#M39903</link>
      <description>&lt;P&gt;Could this be an issue with Timezone of ingested data and logged in user timezone is different? Can you add the query you are trying to run for above selected time?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 16:36:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Odd-occurence-with-snapping-time/m-p/290757#M39903</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-02-19T16:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Odd occurence with snapping time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Odd-occurence-with-snapping-time/m-p/290758#M39904</link>
      <description>&lt;P&gt;All times of all events ingested are in UTC. I can't post the actual search due to corporate constraints, but for sake of argument, this should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;
    index=someIndex
    | eval several fields
    | timechart span=1mon sum(field_0) as first sum(field_1) as second
&amp;lt;/query&amp;gt;
&amp;lt;earliest&amp;gt;-3mon@mon&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;@mon&amp;lt;/latest&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;as Isaid earlier, I also tried @mon-1d and there was no change&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 17:05:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Odd-occurence-with-snapping-time/m-p/290758#M39904</guid>
      <dc:creator>richkappler</dc:creator>
      <dc:date>2018-02-19T17:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Odd occurence with snapping time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Odd-occurence-with-snapping-time/m-p/290759#M39905</link>
      <description>&lt;P&gt;Can you try with the following and see if correct months are returned?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourBaseSearch&amp;gt;
| chart sum(field_0) as first sum(field_1) as second by date_month
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Ideally you should perform stats first and then use eval(if possible). In your case since field_0 and field_1 are going to be displayed after timechart command, eval on other fields are not required and for field_0 and field_1 can happen after the statistical aggregation of data.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Odd-occurence-with-snapping-time/m-p/290759#M39905</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T18:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Odd occurence with snapping time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Odd-occurence-with-snapping-time/m-p/290760#M39906</link>
      <description>&lt;P&gt;no, now I get no results instead of too many:&lt;/P&gt;

&lt;P&gt;"No results found."&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 17:28:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Odd-occurence-with-snapping-time/m-p/290760#M39906</guid>
      <dc:creator>richkappler</dc:creator>
      <dc:date>2018-02-19T17:28:53Z</dc:date>
    </item>
  </channel>
</rss>

