<?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: Line chart group by month in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Line-chart-group-by-month/m-p/482326#M135113</link>
    <description>&lt;P&gt;Hello @andy222,&lt;/P&gt;

&lt;P&gt;please modify your query as follows :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;QUERY |  timechart count by Click span=1mon
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and find all information about &lt;STRONG&gt;span&lt;/STRONG&gt; here &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Timechart"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Timechart&lt;/A&gt; and here &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/Timechart#Span_options"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/Timechart#Span_options&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2020 06:10:59 GMT</pubDate>
    <dc:creator>poete</dc:creator>
    <dc:date>2020-02-25T06:10:59Z</dc:date>
    <item>
      <title>Line chart group by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Line-chart-group-by-month/m-p/482325#M135112</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I am sorry I am very new to the splunk and I am struggling with the results I want to get.&lt;BR /&gt;
I have a query that produces desired (kind of.. In visualization, months are still not in chronological order) result as bar chart without any effort. When I convert that to line chart, my grouping by month is removed and I get result for each day as seen below:&lt;/P&gt;

&lt;P&gt;Query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;QUERY | eval Date=strftime('_time',"%Y-%m") | timechart count by Click | sort _time Desc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Visualization looks perfect as bar chart:&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/8454iDFF6835F7FAC4897/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;As soon as I select Line chart, My X-Axis displays chart by individual date and not grouped by month as seen below:  &lt;A href="https://answers.splunk.comstorage/temp/284574-2020-02-24-15-49-48.png"&gt;2&lt;/A&gt;: &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/8455i09FE2AA0999C0016/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;Can someone please tell me how to group my data by month in a line OR any other chart?&lt;BR /&gt;
Also how can I display my chart starting from latest?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 21:55:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Line-chart-group-by-month/m-p/482325#M135112</guid>
      <dc:creator>andy222</dc:creator>
      <dc:date>2020-02-24T21:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart group by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Line-chart-group-by-month/m-p/482326#M135113</link>
      <description>&lt;P&gt;Hello @andy222,&lt;/P&gt;

&lt;P&gt;please modify your query as follows :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;QUERY |  timechart count by Click span=1mon
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and find all information about &lt;STRONG&gt;span&lt;/STRONG&gt; here &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Timechart"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Timechart&lt;/A&gt; and here &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/Timechart#Span_options"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/Timechart#Span_options&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 06:10:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Line-chart-group-by-month/m-p/482326#M135113</guid>
      <dc:creator>poete</dc:creator>
      <dc:date>2020-02-25T06:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart group by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Line-chart-group-by-month/m-p/482327#M135114</link>
      <description>&lt;P&gt;Hi @poete,&lt;BR /&gt;
Thanks for your answer. It worked like a charm. &lt;BR /&gt;
Now only problem remains is that, it starts with least to greatest. I want to start my graph from current year-month and then in the past. Currently if I set time range for 365 days, it starts at February 2019 and then goes on. I want it to start with February 2020.&lt;/P&gt;

&lt;P&gt;Thanks again&lt;BR /&gt;
Andy&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 14:51:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Line-chart-group-by-month/m-p/482327#M135114</guid>
      <dc:creator>andy222</dc:creator>
      <dc:date>2020-02-25T14:51:18Z</dc:date>
    </item>
  </channel>
</rss>

