<?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: Data missing from dashboard panel in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Data-missing-from-dashboard-panel/m-p/86821#M44129</link>
    <description>&lt;P&gt;From the docs on stats functions:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;values(X)   This function returns the list of all distinct values of the field X as a multi-value entry. The order of the values is lexicographical.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So, you're using values() to list all distinct values in your events, and that's what you get. The only distinct value for step_return_code is 0.&lt;/P&gt;

&lt;P&gt;I'm not sure if you really should be using values here. Wouldn't it be a better idea to use a table instead? That way you get values per event instead of aggregated like it is now.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | table step_number step_return_code step_elapsed_time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:06:30 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2020-09-28T13:06:30Z</dc:date>
    <item>
      <title>Data missing from dashboard panel</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Data-missing-from-dashboard-panel/m-p/86820#M44128</link>
      <description>&lt;P&gt;The input log using access_combined source type:&lt;/P&gt;

&lt;P&gt;[12/28/2012 4:41:09 PM] [12/28/2012 4:41:10 PM]  step_number="1220"  step_return_code="0"  step_elapsed_time="0 Days 0:0:01"&lt;/P&gt;

&lt;P&gt;[12/28/2012 4:41:11 PM] [12/28/2012 4:41:12 PM]  step_number="1230"  step_return_code="0"  step_elapsed_time="0 Days 0:0:01"&lt;/P&gt;

&lt;P&gt;[12/28/2012 4:41:13 PM] [12/28/2012 4:41:27 PM]  step_number="1500"  step_return_code="0"  step_elapsed_time="0 Days 0:0:14"&lt;/P&gt;

&lt;P&gt;[12/28/2012 4:41:29 PM] [12/28/2012 4:41:44 PM]  step_number="2000"  step_return_code="0"  step_elapsed_time="0 Days 0:0:15"&lt;/P&gt;

&lt;P&gt;The search:&lt;/P&gt;

&lt;P&gt;source="*_.log" | chart values(step_number) AS "Step Number" values(step_return_code) AS "Return Code" values(step_elapsed_time) AS "Elapsed Time" &lt;/P&gt;

&lt;P&gt;The results from the dashboard panel:&lt;/P&gt;

&lt;P&gt;_time                   Step Number Return Code Elapsed Time&lt;/P&gt;

&lt;P&gt;12/28/12 4:40:34.000 PM 1220        0           0 Days 0:0:01&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;                              1230
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;12/28/12 4:41:12.000 PM 1500        0           0 Days 0:0:12&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;                              2000          0 Days 0:0:12

                              2010          0 Days 0:0:14
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can't figure out why the Return Code and Elapsed Time are missing from Step 1230, and why the Return Code is missing from Steps 2000 and 2010,&lt;/P&gt;

&lt;P&gt;It should look like this:&lt;/P&gt;

&lt;P&gt;_time                      Step Number Return Code Elapsed Time&lt;/P&gt;

&lt;P&gt;12/28/12 4:40:34.000 PM    1220        0           0 Days 0:0:01&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:06:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Data-missing-from-dashboard-panel/m-p/86820#M44128</guid>
      <dc:creator>terryloar</dc:creator>
      <dc:date>2020-09-28T13:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Data missing from dashboard panel</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Data-missing-from-dashboard-panel/m-p/86821#M44129</link>
      <description>&lt;P&gt;From the docs on stats functions:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;values(X)   This function returns the list of all distinct values of the field X as a multi-value entry. The order of the values is lexicographical.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So, you're using values() to list all distinct values in your events, and that's what you get. The only distinct value for step_return_code is 0.&lt;/P&gt;

&lt;P&gt;I'm not sure if you really should be using values here. Wouldn't it be a better idea to use a table instead? That way you get values per event instead of aggregated like it is now.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | table step_number step_return_code step_elapsed_time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:06:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Data-missing-from-dashboard-panel/m-p/86821#M44129</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2020-09-28T13:06:30Z</dc:date>
    </item>
  </channel>
</rss>

