<?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 Stats and chart command output response showing differently for date column in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Stats-and-chart-command-output-response-showing-differently-for/m-p/442183#M7911</link>
    <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;

&lt;P&gt;I want your help to understand different responses of stats and chart command output. In First output with STATS command, date and time showing correctly in the last column. &lt;/P&gt;

&lt;P&gt;index=index1*|.....&lt;BR /&gt;&lt;BR /&gt;
| search issueType = "Bug"  AND (Status = "In QA" OR Status = "In Dev") AND (priority = P1 OR priority = P2 OR priority= P3) AND (key = "CORE-26985" OR  key = "CORE-37789")&lt;BR /&gt;
| stats min(update) as qaStatusDateMin  by key,Status&lt;BR /&gt;
&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/6485i4B5EC49D7C64C687/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;But when I use chart command then only year is showing instead of date and time under newly generated columns named "In QA" and "In Dev"&lt;/P&gt;

&lt;P&gt;| fillnull value="None" labels&lt;BR /&gt;
| search issueType = "Bug"  AND (Status = "In QA" OR Status = "In Dev") AND (priority = P1 OR priority = P2 OR priority= P3) AND (key = "CORE-26985" OR  key = "CORE-37789")&lt;BR /&gt;
| chart min(update) as qaStatusDateMin  by key,Status&lt;/P&gt;

&lt;P&gt;&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/6486i40F60E1A17A8B925/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;I hope, I have explained my question here in detail. Please help me to understand the logic behind this output response.&lt;/P&gt;

&lt;P&gt;Your help will be appreciated!&lt;/P&gt;</description>
    <pubDate>Fri, 01 Feb 2019 08:16:29 GMT</pubDate>
    <dc:creator>vikas_baranwal</dc:creator>
    <dc:date>2019-02-01T08:16:29Z</dc:date>
    <item>
      <title>Stats and chart command output response showing differently for date column</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Stats-and-chart-command-output-response-showing-differently-for/m-p/442183#M7911</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;

&lt;P&gt;I want your help to understand different responses of stats and chart command output. In First output with STATS command, date and time showing correctly in the last column. &lt;/P&gt;

&lt;P&gt;index=index1*|.....&lt;BR /&gt;&lt;BR /&gt;
| search issueType = "Bug"  AND (Status = "In QA" OR Status = "In Dev") AND (priority = P1 OR priority = P2 OR priority= P3) AND (key = "CORE-26985" OR  key = "CORE-37789")&lt;BR /&gt;
| stats min(update) as qaStatusDateMin  by key,Status&lt;BR /&gt;
&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/6485i4B5EC49D7C64C687/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;But when I use chart command then only year is showing instead of date and time under newly generated columns named "In QA" and "In Dev"&lt;/P&gt;

&lt;P&gt;| fillnull value="None" labels&lt;BR /&gt;
| search issueType = "Bug"  AND (Status = "In QA" OR Status = "In Dev") AND (priority = P1 OR priority = P2 OR priority= P3) AND (key = "CORE-26985" OR  key = "CORE-37789")&lt;BR /&gt;
| chart min(update) as qaStatusDateMin  by key,Status&lt;/P&gt;

&lt;P&gt;&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/6486i40F60E1A17A8B925/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;I hope, I have explained my question here in detail. Please help me to understand the logic behind this output response.&lt;/P&gt;

&lt;P&gt;Your help will be appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 08:16:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Stats-and-chart-command-output-response-showing-differently-for/m-p/442183#M7911</guid>
      <dc:creator>vikas_baranwal</dc:creator>
      <dc:date>2019-02-01T08:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Stats and chart command output response showing differently for date column</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Stats-and-chart-command-output-response-showing-differently-for/m-p/442184#M7912</link>
      <description>&lt;P&gt;Hello @vikas_baranwal &lt;/P&gt;

&lt;P&gt;The difference start comes in pictures when you mention two or more fields in by clause in Splunk. &lt;/P&gt;

&lt;P&gt;When you use &lt;CODE&gt;stats count by a,b&lt;/CODE&gt; , it will created status based on the a &amp;amp; b which is visible easily in your search results.&lt;/P&gt;

&lt;P&gt;But when it comes to chart command it doesn't follow the same process. Because you need to create a graph. the command will be identical to chart over a by b&lt;BR /&gt;
in your case: &lt;CODE&gt;| chart min(update) as qaStatusDateMin over key by Status&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 08:35:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Stats-and-chart-command-output-response-showing-differently-for/m-p/442184#M7912</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-02-01T08:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Stats and chart command output response showing differently for date column</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Stats-and-chart-command-output-response-showing-differently-for/m-p/442185#M7913</link>
      <description>&lt;P&gt;Hi Vishal,&lt;/P&gt;

&lt;P&gt;Thanks for your reply but still I have not got answer for my question. &lt;/P&gt;

&lt;P&gt;With regards,&lt;BR /&gt;
Vikas baranwal&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 10:44:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Stats-and-chart-command-output-response-showing-differently-for/m-p/442185#M7913</guid>
      <dc:creator>vikas_baranwal</dc:creator>
      <dc:date>2019-02-01T10:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Stats and chart command output response showing differently for date column</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Stats-and-chart-command-output-response-showing-differently-for/m-p/442186#M7914</link>
      <description>&lt;P&gt;@vikas_baranwal &lt;/P&gt;

&lt;P&gt;There is No logic behind it. As chart command need three axis for data showing. It will convert the command in different logic , so that the data can be visible better in any visualisation. &lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 10:52:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Stats-and-chart-command-output-response-showing-differently-for/m-p/442186#M7914</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-02-01T10:52:23Z</dc:date>
    </item>
  </channel>
</rss>

