<?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: tstats behaviour change in Splunk 6.6, expected change or bug ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359990#M106427</link>
    <description>&lt;P&gt;Are you referring to 6.6.1 ? Not 6.1.1?&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2017 22:42:50 GMT</pubDate>
    <dc:creator>gjanders</dc:creator>
    <dc:date>2017-05-25T22:42:50Z</dc:date>
    <item>
      <title>tstats behaviour change in Splunk 6.6, expected change or bug ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359986#M106423</link>
      <description>&lt;P&gt;Hi !&lt;/P&gt;

&lt;P&gt;Splunk 6.6 being out officially, I had the (bad) surprise to discover is very annoying change in tstats command behaviour.&lt;/P&gt;

&lt;P&gt;Doing an operation over a non existing field result in a "nan" value instead of a null field.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The following search can be used to demonstrate:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count as count max(foo) as foo WHERE index=_internal
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With 6.5.3 and previous, the result would have been:&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2854iDDBD6D60549E41D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Since 6.6, it is now: &lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2855i91376BB205C0C2AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;So in what could be a problem ? Well it changes the behaviour on any condition using an "isnull" or "isnotnull" condition, such as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count as count max(foo) as foo WHERE index=_internal
| eval good=if(isnotnull(foo), foo, count)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would now use the "bad" value instead of the "good" value, because it is not null any more as it now equals to the "nan" string.&lt;BR /&gt;
Off course, the query can be changed to something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count as count max(foo) as foo WHERE index=_internal
| eval good=if(isnum(foo), foo, count)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is however a serious change in the tstats behaviours, and has side effects on any stuff doing such job and assuming that the field will be null if it is not available in the data.&lt;/P&gt;

&lt;P&gt;Is that an expected change ? A bug ?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 20:03:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359986#M106423</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2017-05-02T20:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: tstats behaviour change in Splunk 6.6, expected change or bug ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359987#M106424</link>
      <description>&lt;P&gt;I'm going with bug.  I've seen nans before and it wa always my fault and not expected &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 01:05:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359987#M106424</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-05-03T01:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: tstats behaviour change in Splunk 6.6, expected change or bug ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359988#M106425</link>
      <description>&lt;P&gt;Thanks as always for your rockstar work, Guilhem!&lt;/P&gt;

&lt;P&gt;I have filed a bug and made internal devs aware. Stay tuned!&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 17:47:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359988#M106425</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-05-03T17:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: tstats behaviour change in Splunk 6.6, expected change or bug ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359989#M106426</link>
      <description>&lt;P&gt;This issue has been fixed with Splunk maintenance release 6.6.1 (SPL-141863, SPL-141584)&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 19:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359989#M106426</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2017-05-25T19:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: tstats behaviour change in Splunk 6.6, expected change or bug ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359990#M106427</link>
      <description>&lt;P&gt;Are you referring to 6.6.1 ? Not 6.1.1?&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 22:42:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359990#M106427</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2017-05-25T22:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: tstats behaviour change in Splunk 6.6, expected change or bug ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359991#M106428</link>
      <description>&lt;P&gt;A typo off course, thank you &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Corrected.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 22:47:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359991#M106428</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2017-05-25T22:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: tstats behaviour change in Splunk 6.6, expected change or bug ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359992#M106429</link>
      <description>&lt;P&gt;Happy to have that one in my Jira scrapbook! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks for finding it early and reporting @guilmxm&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i.imgur.com/vCFeulq.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 01:05:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359992#M106429</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-05-26T01:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: tstats behaviour change in Splunk 6.6, expected change or bug ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359993#M106430</link>
      <description>&lt;P&gt;And more than happy to contribute to the quality of Splunk &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 07:46:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-behaviour-change-in-Splunk-6-6-expected-change-or-bug/m-p/359993#M106430</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2017-05-26T07:46:05Z</dc:date>
    </item>
  </channel>
</rss>

