<?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 Reporting / Dashboard issues in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345355#M43088</link>
    <description>&lt;P&gt;So I am using the following search to grab data:&lt;/P&gt;

&lt;P&gt;source="&lt;EM&gt;mhn-splunk.log&lt;/EM&gt;" |eval Time=strftime(_time,"%b %Y") | stats count as daycount by date_mday | streamstats avg(daycount) | &lt;/P&gt;

&lt;P&gt;Issue I noticed today when looking at month to date it orders result in below order which also messes up bar chart any suggestions to fix would be much appreciated.&lt;/P&gt;

&lt;P&gt;1&lt;BR /&gt;
10&lt;BR /&gt;
2&lt;BR /&gt;
3&lt;BR /&gt;
4&lt;BR /&gt;
5&lt;BR /&gt;
6&lt;BR /&gt;
7&lt;BR /&gt;
8&lt;BR /&gt;
9&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:09:56 GMT</pubDate>
    <dc:creator>magneto417x</dc:creator>
    <dc:date>2020-09-29T13:09:56Z</dc:date>
    <item>
      <title>Reporting / Dashboard issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345355#M43088</link>
      <description>&lt;P&gt;So I am using the following search to grab data:&lt;/P&gt;

&lt;P&gt;source="&lt;EM&gt;mhn-splunk.log&lt;/EM&gt;" |eval Time=strftime(_time,"%b %Y") | stats count as daycount by date_mday | streamstats avg(daycount) | &lt;/P&gt;

&lt;P&gt;Issue I noticed today when looking at month to date it orders result in below order which also messes up bar chart any suggestions to fix would be much appreciated.&lt;/P&gt;

&lt;P&gt;1&lt;BR /&gt;
10&lt;BR /&gt;
2&lt;BR /&gt;
3&lt;BR /&gt;
4&lt;BR /&gt;
5&lt;BR /&gt;
6&lt;BR /&gt;
7&lt;BR /&gt;
8&lt;BR /&gt;
9&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:09:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345355#M43088</guid>
      <dc:creator>magneto417x</dc:creator>
      <dc:date>2020-09-29T13:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting / Dashboard issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345356#M43089</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="mhn-splunk.log" |eval Time=strftime(_time,"%b %Y") | stats count as daycount by date_mday | sort 0 num(date_mday) | streamstats avg(daycount) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Mar 2017 15:44:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345356#M43089</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-10T15:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting / Dashboard issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345357#M43090</link>
      <description>&lt;P&gt;Quick note, I am not entirely sure what you are doing with the &lt;CODE&gt;eval  Time ...&lt;/CODE&gt; step because that doesn't have any effect.&lt;/P&gt;

&lt;P&gt;Regadless, you can fix your sorting problem by adding a leading zero to &lt;CODE&gt;date_mday&lt;/CODE&gt;. Add this to your search for ascending calendar dates..&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| eval date_mday = if(date_mday &amp;lt; 10, "0".tostring(date_mday), tostring(date_mday)) | sort +date_mday&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 15:49:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345357#M43090</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-03-10T15:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting / Dashboard issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345358#M43091</link>
      <description>&lt;P&gt;The returns same results and still not in order &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 15:49:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345358#M43091</guid>
      <dc:creator>magneto417x</dc:creator>
      <dc:date>2017-03-10T15:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting / Dashboard issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345359#M43092</link>
      <description>&lt;P&gt;That works for me for similar query. Did you use the exact query I gave or there was any modification. Give @rjthibod's answer a try then.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 16:11:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345359#M43092</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-10T16:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting / Dashboard issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345360#M43093</link>
      <description>&lt;P&gt;eval Time=strftime(_time,"%b %Y") &lt;/P&gt;

&lt;P&gt;You are not using eval for any results.&lt;/P&gt;

&lt;P&gt;My suggestion is to make use of strftime&lt;/P&gt;

&lt;P&gt;Like below &lt;/P&gt;

&lt;P&gt;eval datemday=strftime(_time,????) &lt;/P&gt;

&lt;P&gt;Give the required format &lt;/P&gt;

&lt;P&gt;And count by datemday&lt;/P&gt;

&lt;P&gt;You can also use raw date column instead of _tim because daylight matters&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 16:21:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345360#M43093</guid>
      <dc:creator>puneethgowda</dc:creator>
      <dc:date>2017-03-10T16:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting / Dashboard issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345361#M43094</link>
      <description>&lt;P&gt;I'm not sure I understand that would make my search be then I tried it a few times and it fails. Would you be able to post what the complete statement would look like?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 16:35:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345361#M43094</guid>
      <dc:creator>magneto417x</dc:creator>
      <dc:date>2017-03-10T16:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting / Dashboard issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345362#M43095</link>
      <description>&lt;P&gt;Copied the query and ran it and it failed &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 16:38:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345362#M43095</guid>
      <dc:creator>magneto417x</dc:creator>
      <dc:date>2017-03-10T16:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting / Dashboard issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345363#M43096</link>
      <description>&lt;P&gt;@magneto417X Did you try my suggestion of prepending the 0 to some dates?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 16:47:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345363#M43096</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-03-10T16:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting / Dashboard issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345364#M43097</link>
      <description>&lt;P&gt;Not yet had to go to a meeting but plan to give it a spin when I'm back. I will try and update thread &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 16:54:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345364#M43097</guid>
      <dc:creator>magneto417x</dc:creator>
      <dc:date>2017-03-10T16:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting / Dashboard issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345365#M43098</link>
      <description>&lt;P&gt;That worked. Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 18:10:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345365#M43098</guid>
      <dc:creator>magneto417x</dc:creator>
      <dc:date>2017-03-10T18:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting / Dashboard issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345366#M43099</link>
      <description>&lt;P&gt;Sleeping time in India now let me try tomorrow&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 18:13:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reporting-Dashboard-issues/m-p/345366#M43099</guid>
      <dc:creator>puneethgowda</dc:creator>
      <dc:date>2017-03-10T18:13:50Z</dc:date>
    </item>
  </channel>
</rss>

