<?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: How i can show my result in below format in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493312#M137594</link>
    <description>&lt;P&gt;yes , its different&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2019 13:18:44 GMT</pubDate>
    <dc:creator>nilbak1</dc:creator>
    <dc:date>2019-11-25T13:18:44Z</dc:date>
    <item>
      <title>How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493305#M137587</link>
      <description>&lt;P&gt;I have table in below format.&lt;BR /&gt;
Order_Creation_Time Order_Count   Brand&lt;BR /&gt;
00                  6           brand1&lt;BR /&gt;
00                  4           brand2&lt;BR /&gt;
00                      2               brand3&lt;BR /&gt;
00                  69          brand4&lt;BR /&gt;
01                  8           brand1&lt;BR /&gt;
01                  15          brand2&lt;BR /&gt;
01                  40          brand3&lt;BR /&gt;
01                  70          brand4&lt;/P&gt;

&lt;P&gt;These Order_Creation_Time are the hours from (starting from 00 till 23)&lt;/P&gt;

&lt;P&gt;I have to convert this in below format&lt;/P&gt;

&lt;P&gt;Brand       00  01  02  03  04 ....10.....20......23&lt;BR /&gt;
brand1      6   8 &lt;BR /&gt;
brand2      4   15&lt;BR /&gt;
brand3      2   40&lt;BR /&gt;
brand4      69  70&lt;/P&gt;

&lt;P&gt;Can anyone help me with this ?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:07:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493305#M137587</guid>
      <dc:creator>nilbak1</dc:creator>
      <dc:date>2020-09-30T03:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493306#M137588</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults count=2
| streamstats count
| eval _time = if (count==2,relative_time(_time,"-1d@d"), relative_time(_time,"@d")) 
| makecontinuous span=15m
| fillnull
| where count!=1
| eval Order_Creation_Time=strftime(_time,"%H") ,Order_Count = random() % 100 + 1
| streamstats count by Order_Creation_Time
| eval Brand = "brand".count
| table Order_Creation_Time Order_Count Brand
`comment("this is sample data")`
| chart useother=f limit=0 sum(Order_Count) as Order_Count  over Brand by Order_Creation_Time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi, how about it?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 11:53:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493306#M137588</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-11-25T11:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493307#M137589</link>
      <description>&lt;P&gt;Hi @to4kawa &lt;BR /&gt;
The result is coming in the correct format which i want, but the values of order_count is not coming correct as you summing them here &lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 12:02:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493307#M137589</guid>
      <dc:creator>nilbak1</dc:creator>
      <dc:date>2019-11-25T12:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493308#M137590</link>
      <description>&lt;P&gt;try this&lt;BR /&gt;
    |table Order_Creation_Time,Order_Count,Brand |chart values(Order_Count) by Brand,Order_Creation_Time&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:04:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493308#M137590</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2020-09-30T03:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493309#M137591</link>
      <description>&lt;P&gt;@nilbak1 &lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR_SEARCH | table Order_Creation_Time Order_Count Brand
| xyseries Brand Order_Creation_Time Order_Count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample Search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval _raw="Order_Creation_Time  Order_Count Brand
00  24  brand1
00  62  brand2
00  83  brand3
00  2   brand4
01  93  brand1
01  35  brand2
01  84  brand3
01  46  brand4
02  64  brand1
02  61  brand2
02  44  brand3
02  43  brand4
03  61  brand1
03  68  brand2
03  41  brand3
03  51  brand4
04  76  brand1
04  79  brand2
04  30  brand3
04  44  brand4
05  75  brand1
05  51  brand2
05  80  brand3
05  64  brand4
06  17  brand1
06  5   brand2
06  74  brand3
06  78  brand4
07  36  brand1
07  68  brand2
07  96  brand3
07  13  brand4
08  87  brand1
08  38  brand2
08  74  brand3
08  59  brand4
09  89  brand1
09  4   brand2
09  68  brand3
09  87  brand4
10  8   brand1
10  90  brand2
10  90  brand3
10  94  brand4
11  98  brand1
11  80  brand2
11  31  brand3
11  95  brand4
12  9   brand1
12  16  brand2
12  79  brand3
12  11  brand4
13  61  brand1
13  10  brand2
13  11  brand3
13  98  brand4
14  23  brand1
14  93  brand2
14  85  brand3
14  100 brand4
15  44  brand1
15  66  brand2
15  15  brand3
15  70  brand4
16  25  brand1
16  91  brand2
16  39  brand3
16  64  brand4
17  61  brand1
17  79  brand2
17  64  brand3
17  15  brand4
18  71  brand1
18  43  brand2
18  35  brand3
18  48  brand4
19  42  brand1
19  62  brand2
19  33  brand3
19  45  brand4
20  98  brand1
20  92  brand2
20  14  brand3
20  9   brand4
21  99  brand1
21  80  brand2
21  16  brand3
21  56  brand4
22  99  brand1
22  12  brand2
22  27  brand3
22  87  brand4
23  69  brand1
23  96  brand2
23  7   brand3
23  3   brand4
" | multikv | table Order_Creation_Time Order_Count Brand
| xyseries Brand Order_Creation_Time Order_Count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 12:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493309#M137591</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-11-25T12:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493310#M137592</link>
      <description>&lt;P&gt;Based on your sample data, this should work for you&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|chart values(Order_Count) over Brand by Order_Creation_Time 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| xyseries Order_Creation_Time, Brand,  Order_Count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here are the docs for reference&lt;BR /&gt;
chart: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/SearchReference/Chart"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/SearchReference/Chart&lt;/A&gt;&lt;BR /&gt;
xyseries: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/SearchReference/Xyseries"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/SearchReference/Xyseries&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;hope this helps&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 12:49:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493310#M137592</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2019-11-25T12:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493311#M137593</link>
      <description>&lt;P&gt;My data is created at random once each time, so if you look at the table and check the summary, the values will be different.&lt;/P&gt;

&lt;P&gt;Is it different if you add &lt;CODE&gt;chart&lt;/CODE&gt; to your query?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 13:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493311#M137593</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-11-25T13:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493312#M137594</link>
      <description>&lt;P&gt;yes , its different&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 13:18:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493312#M137594</guid>
      <dc:creator>nilbak1</dc:creator>
      <dc:date>2019-11-25T13:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493313#M137595</link>
      <description>&lt;P&gt;I have already tried both, they were not working&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 13:19:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493313#M137595</guid>
      <dc:creator>nilbak1</dc:creator>
      <dc:date>2019-11-25T13:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493314#M137596</link>
      <description>&lt;P&gt;Not working for me&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 13:19:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493314#M137596</guid>
      <dc:creator>nilbak1</dc:creator>
      <dc:date>2019-11-25T13:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493315#M137597</link>
      <description>&lt;P&gt;it's not working, already tried&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 13:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493315#M137597</guid>
      <dc:creator>nilbak1</dc:creator>
      <dc:date>2019-11-25T13:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493316#M137598</link>
      <description>&lt;P&gt;@niketnilay Can you help here ?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 13:20:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493316#M137598</guid>
      <dc:creator>nilbak1</dc:creator>
      <dc:date>2019-11-25T13:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493317#M137599</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/85556"&gt;@nilbak1&lt;/a&gt; &lt;BR /&gt;
What is not working? I guess we are all confused about your expected output?&lt;BR /&gt;
|table Order_Creation_Time,Order_Count,Brand |chart values(Order_Count) by Brand,Order_Creation_Time&lt;BR /&gt;
The output you have given in your question comes from a simple chart, but am i missing something?&lt;BR /&gt;
please see my screenshot of output &lt;IMG src="https://community.splunk.com/storage/temp/276633-scrnsht.jpg" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:04:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493317#M137599</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2020-09-30T03:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493318#M137600</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="Order_Creation_Time,Order_Count,Brand
00,6,brand1
00,4,brand2
00,2,brand3
00,69,brand4
01,8,brand1
01,15,brand2
01,40,brand3
01,70,brand4"
| multikv forceheader=1
| chart sum(Order_Count) as Order_Count over Brand by Order_Creation_Time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there anything other than numbers in Order_count?&lt;BR /&gt;
Since it was not in the example presented, I summed up normally, but if so, I need to add a query.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 13:44:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493318#M137600</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-11-25T13:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493319#M137601</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults
| eval _raw="Order_Creation_Time,Order_Count,Brand
00,6,brand1
00,4,brand2
00,2,brand3
00,69,brand4
01,8,brand1
01,15,brand2
01,40,brand3
01,70,brand4"
|multikv
| fields - _time _raw linecount

| rename COMMENT AS "Everything above generates sample event data; everything below is your solution"

| xyseries Brand Order_Creation_Time Order_Count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Nov 2019 15:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493319#M137601</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-25T15:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493320#M137602</link>
      <description>&lt;P&gt;@nilbak1 I see a lot of community experts have already tried to assist you with your issue. So you may have to describe a little bit more as to what or how the solution/s suggested by them did not work for you? When you are preparing the header column of hours, do you need to show the header row for each hour whether brand data exist for it or not.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 05:54:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493320#M137602</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-11-26T05:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493321#M137603</link>
      <description>&lt;P&gt;Hi @to4kava...  its working now, mightbe I have messed up my query earlier.&lt;/P&gt;

&lt;P&gt;my search | multikv| table ORDER_CREATION_TIME ORDER_COUNT BRAND |  chart useother=f limit=0 values(ORDER_COUNT) as ORDER_COUNT over BRAND by ORDER_CREATION_TIME&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:08:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493321#M137603</guid>
      <dc:creator>nilbak1</dc:creator>
      <dc:date>2020-09-30T03:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493322#M137604</link>
      <description>&lt;P&gt;Thanks everyone for all your time  and support  here&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 13:06:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493322#M137604</guid>
      <dc:creator>nilbak1</dc:creator>
      <dc:date>2019-11-26T13:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: How i can show my result in below format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493323#M137605</link>
      <description>&lt;P&gt;I see, no problem, Happy Splunking&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 13:15:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-i-can-show-my-result-in-below-format/m-p/493323#M137605</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-11-26T13:15:05Z</dc:date>
    </item>
  </channel>
</rss>

