<?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 Grouping by month instead of by full date format in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Grouping-by-month-instead-of-by-full-date-format/m-p/437183#M124513</link>
    <description>&lt;P&gt;Hi guys,&lt;BR /&gt;
Currently, my data is grouped like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1. Product | 2018-5-5 02:00  | 2018-5-5 02:30  | 2018-5-5 04:00  |  2018-6-5 02:00
2. asdf  | 5  | 6 |  7 | 5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to change my data such that it will group by month&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1. Product  |  2018-5  | 2018-6
2. asdf  |  18  |  5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;..&lt;BR /&gt;
This is my code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=asdf
|chart eval(round(dc(customers_name) / 74086 * 100,2). "%") by sku_name month
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Helpp..&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jul 2018 07:53:29 GMT</pubDate>
    <dc:creator>andrehl</dc:creator>
    <dc:date>2018-07-13T07:53:29Z</dc:date>
    <item>
      <title>Grouping by month instead of by full date format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-by-month-instead-of-by-full-date-format/m-p/437183#M124513</link>
      <description>&lt;P&gt;Hi guys,&lt;BR /&gt;
Currently, my data is grouped like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1. Product | 2018-5-5 02:00  | 2018-5-5 02:30  | 2018-5-5 04:00  |  2018-6-5 02:00
2. asdf  | 5  | 6 |  7 | 5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to change my data such that it will group by month&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1. Product  |  2018-5  | 2018-6
2. asdf  |  18  |  5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;..&lt;BR /&gt;
This is my code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=asdf
|chart eval(round(dc(customers_name) / 74086 * 100,2). "%") by sku_name month
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Helpp..&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 07:53:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-by-month-instead-of-by-full-date-format/m-p/437183#M124513</guid>
      <dc:creator>andrehl</dc:creator>
      <dc:date>2018-07-13T07:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping by month instead of by full date format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-by-month-instead-of-by-full-date-format/m-p/437184#M124514</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You need to create a dummy field to get year and month.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval yearMonth=date_year."-".date_month
 |chart eval(round(dc(customers_name) / 74086 * 100,2). "%") by sku_name yearMonth
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Jul 2018 12:57:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-by-month-instead-of-by-full-date-format/m-p/437184#M124514</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2018-07-13T12:57:00Z</dc:date>
    </item>
  </channel>
</rss>

