<?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: chart over multiple fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319851#M95597</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats count AS "Sales count" sum(count) AS "Sum count" BY date_month Country
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 06 Sep 2017 21:52:39 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-09-06T21:52:39Z</dc:date>
    <item>
      <title>chart over multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319850#M95596</link>
      <description>&lt;P&gt;hello splunkers,&lt;/P&gt;

&lt;P&gt;We are trying to get the chart over for multiple fields sample as below , we are not able to get it, kindly help us on how to query it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Month Country  Sales count
01     A       10
02     B       30
03     C       20
04     D       10 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance&lt;BR /&gt;
Jyothi&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 21:30:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319850#M95596</guid>
      <dc:creator>Jyothik</dc:creator>
      <dc:date>2017-09-06T21:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: chart over multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319851#M95597</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats count AS "Sales count" sum(count) AS "Sum count" BY date_month Country
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Sep 2017 21:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319851#M95597</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-06T21:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: chart over multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319852#M95598</link>
      <description>&lt;P&gt;it didn't help, we want exactly moth wise, country wise sales count. please help on query&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Jyothi&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 21:59:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319852#M95598</guid>
      <dc:creator>Jyothik</dc:creator>
      <dc:date>2017-09-06T21:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: chart over multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319853#M95599</link>
      <description>&lt;P&gt;If I understand what you need, will something like this work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval month_country=Month+"|"+Country
|chart count by month_country Sales
|rex field=month_country "(?&amp;lt;Month&amp;gt;\d+)\|(?&amp;lt;Country&amp;gt;.*)"
|fields - month_country
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Sep 2017 23:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319853#M95599</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-09-06T23:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: chart over multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319854#M95600</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats count AS "Sales count" sum(count) AS "Sum count" values(Country) BY date_month
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;BTW, your question is vague and you did not supply any usable sample data, nor an unambiguous mockup of the final goal.  This means that it is very difficult for people to help and much time is likely to be wasted.  Ask questions better to get better answers.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 23:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319854#M95600</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-06T23:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: chart over multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319855#M95601</link>
      <description>&lt;P&gt;month and country are not same fields, month is different fiel, country is different field and sales count is different filed. looking to have on' x' axis month wise and on 'y' axis sales and country with different colors on bar chart. color Bar to represent each country.&lt;/P&gt;

&lt;P&gt;Kindly help it to get me with query.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Jyothi&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 21:00:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319855#M95601</guid>
      <dc:creator>Jyothik</dc:creator>
      <dc:date>2017-09-07T21:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: chart over multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319856#M95602</link>
      <description>&lt;P&gt;try this syntax and let me know if the output is close what you're looking for :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults |eval data="month=1,country=A,salescount=10 month=2,country=B,salescount=30 month=3,country=C,salescount=20 month=4,country=D,salescount=10"| makemv data | mvexpand data | rename data as _raw | kv|eval{country}=salescount|fields - country salescount _time _raw|fields month *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if so, take your syntax and add &lt;CODE&gt;|rename "Sales Count" as salescount|eval{Country}=salescount|fields - Country salescount|fields month *&lt;/CODE&gt; to it.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 11:49:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319856#M95602</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-09-08T11:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: chart over multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319857#M95603</link>
      <description>&lt;P&gt;try this -&lt;/P&gt;

&lt;P&gt;| timechart span=1mon count by country | join _time [search  | timechart span=1mon sum(sales)]&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 16:14:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319857#M95603</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2017-09-08T16:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: chart over multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319858#M95604</link>
      <description>&lt;P&gt;this helped me and gave some output but not the way totally i'm looking for 01.2017 calendar year to display as Jan 2017, &lt;BR /&gt;
feb 2017, &lt;BR /&gt;
instead that way it is displaying as 2012-03, my data doesn't contain 2012 at all which is as below.&lt;/P&gt;

&lt;P&gt;_time   Incident    NULL    Service Request&lt;BR /&gt;
2012-03 3992    5   0&lt;BR /&gt;
2012-04 0   0   0&lt;BR /&gt;
2012-05 0   0   0&lt;BR /&gt;
2012-06 0   0   0&lt;BR /&gt;
2012-07 0   0   0&lt;BR /&gt;
2012-08 0   0   0&lt;BR /&gt;
2012-09 0   0   0&lt;BR /&gt;
2012-10 0   0   0&lt;BR /&gt;
2012-11&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 18:28:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319858#M95604</guid>
      <dc:creator>Jyothik</dc:creator>
      <dc:date>2017-09-08T18:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: chart over multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319859#M95605</link>
      <description>&lt;P&gt;still getting the same result with no change , we have the below fields. 1.2017 is Jan 2017 and 2.2017 is feb 2017......month on x axis and no.of tickets on y axis . &lt;/P&gt;

&lt;P&gt;Calendar Year_Month     Country     No.of Tickets&lt;BR /&gt;
1.2017                                   USA                         10&lt;BR /&gt;
2.2017                                  MX                       20&lt;BR /&gt;
3.2017                                   UK                       40&lt;/P&gt;

&lt;P&gt;urgent to produce the dashboard, kindly help me. thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 20:20:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319859#M95605</guid>
      <dc:creator>Jyothik</dc:creator>
      <dc:date>2017-09-08T20:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: chart over multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319860#M95606</link>
      <description>&lt;P&gt;hmmm ... your data needs more explanation. Are your trying sales or ticket counts? can you povide a sample of your true raw data and what exactly you need?  _time wont take your custom time field, but there is a way to make a time chart of your custom time field. You need to provide a more clear sample of your data. Trust me it is not as difficult as it looks, just need your data sample to actually look into the fields and formats your have and what you exactly need....&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2017 08:57:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319860#M95606</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2017-09-09T08:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: chart over multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319861#M95607</link>
      <description>&lt;P&gt;hello colleagues,&lt;/P&gt;

&lt;P&gt;Below is the raw data , from the below i would like to know no.of tickets created in the month of january (01.2017) per country. thanks in advance.&lt;/P&gt;

&lt;P&gt;Ticket ID   Ticket Type Calendar Year /Month    Country&lt;BR /&gt;
500235  Service Request 01.2017 Berlin&lt;BR /&gt;
500235  Service Request 01.2017 Berlin&lt;BR /&gt;
400238  Service Request 01.2017 USA&lt;BR /&gt;
500242  Service Request 01.2017 Mexico&lt;BR /&gt;
50024   Service Request 01.2017 Japan&lt;BR /&gt;
50024   Service Request 01.2017 Japan&lt;BR /&gt;
40024   Service Request 01.2017 Japan&lt;BR /&gt;
40024   Service Request 01.2017 India&lt;BR /&gt;
50024   Service Request 03.2017 India&lt;BR /&gt;
50024   Service Request 03.2017 India&lt;BR /&gt;
50024   Service Request 01.2017 India&lt;BR /&gt;
50024   Service Request 02.2017 Japan&lt;BR /&gt;
40024   Service Request 02.2017 Japan&lt;BR /&gt;
40024   Service Request 02.2017 Mexico&lt;BR /&gt;
50024   Service Request 02.2017 Mexico&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 23:04:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319861#M95607</guid>
      <dc:creator>Jyothik</dc:creator>
      <dc:date>2017-09-11T23:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: chart over multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319862#M95608</link>
      <description>&lt;P&gt;Your field names are beyond awful (the values aren't too great either) but try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... | stats dc("Ticket ID") AS "Sales count" BY "Calendar Year /Month" Country
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Sep 2017 00:20:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319862#M95608</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-12T00:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: chart over multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319863#M95609</link>
      <description>&lt;P&gt;thanks to all , got the output &lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 20:57:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-over-multiple-fields/m-p/319863#M95609</guid>
      <dc:creator>Jyothik</dc:creator>
      <dc:date>2017-09-12T20:57:18Z</dc:date>
    </item>
  </channel>
</rss>

