<?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 1 column  have mutli in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/1-column-have-mutli/m-p/320774#M95860</link>
    <description>&lt;P&gt;i have a table record is&lt;BR /&gt;
date, product, price&lt;BR /&gt;
20171015, ABC,10&lt;BR /&gt;
20171015, CDE,9&lt;BR /&gt;
20171016, ABC,8&lt;BR /&gt;
20171017, CDE,10&lt;/P&gt;

&lt;P&gt;and i want to point a multi line chart to by Date , product&lt;BR /&gt;
how can i do that?&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 21 Oct 2017 07:59:55 GMT</pubDate>
    <dc:creator>kennethyeung</dc:creator>
    <dc:date>2017-10-21T07:59:55Z</dc:date>
    <item>
      <title>1 column  have mutli</title>
      <link>https://community.splunk.com/t5/Splunk-Search/1-column-have-mutli/m-p/320774#M95860</link>
      <description>&lt;P&gt;i have a table record is&lt;BR /&gt;
date, product, price&lt;BR /&gt;
20171015, ABC,10&lt;BR /&gt;
20171015, CDE,9&lt;BR /&gt;
20171016, ABC,8&lt;BR /&gt;
20171017, CDE,10&lt;/P&gt;

&lt;P&gt;and i want to point a multi line chart to by Date , product&lt;BR /&gt;
how can i do that?&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 07:59:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/1-column-have-mutli/m-p/320774#M95860</guid>
      <dc:creator>kennethyeung</dc:creator>
      <dc:date>2017-10-21T07:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: 1 column  have mutli</title>
      <link>https://community.splunk.com/t5/Splunk-Search/1-column-have-mutli/m-p/320775#M95861</link>
      <description>&lt;P&gt;Try this!&lt;/P&gt;

&lt;P&gt;(your search)|chart sum(price) by date,product&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 08:15:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/1-column-have-mutli/m-p/320775#M95861</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2017-10-21T08:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: 1 column  have mutli</title>
      <link>https://community.splunk.com/t5/Splunk-Search/1-column-have-mutli/m-p/320776#M95862</link>
      <description>&lt;P&gt;thanks, it works, just want to ask when use chart and when use table&lt;BR /&gt;
i tried table sum(price) by date, product not work.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 10:57:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/1-column-have-mutli/m-p/320776#M95862</guid>
      <dc:creator>kennethyeung</dc:creator>
      <dc:date>2017-10-21T10:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: 1 column  have mutli</title>
      <link>https://community.splunk.com/t5/Splunk-Search/1-column-have-mutli/m-p/320777#M95863</link>
      <description>&lt;P&gt;You can not use stats commands with &lt;CODE&gt;table&lt;/CODE&gt; you could use &lt;CODE&gt;|stats sum(price) as price by date product&lt;/CODE&gt; but the products would be in ine column and not in multiple columns, and the chart wouldn’t be right. The trick is if you are going to have a multi-series chart, use &lt;CODE&gt;chart&lt;/CODE&gt; Or &lt;CODE&gt;timechart&lt;/CODE&gt; Otherwise, &lt;CODE&gt;stats&lt;/CODE&gt; will work&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 12:53:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/1-column-have-mutli/m-p/320777#M95863</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-10-21T12:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: 1 column  have mutli</title>
      <link>https://community.splunk.com/t5/Splunk-Search/1-column-have-mutli/m-p/320778#M95864</link>
      <description>&lt;P&gt;"Table" and "Chart" have very specific meanings in Splunk.&lt;/P&gt;

&lt;P&gt;If you create a table with the &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.3/SearchReference/Table"&gt;table command&lt;/A&gt;, it does not do anything fancy - it doesn't sum, count or do "work".  Instead, all it does is tell Splunk which fields (that already exist) you'd like to display.  &lt;/P&gt;

&lt;P&gt;The &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.3/SearchReference/Chart"&gt;chart command&lt;/A&gt; is a whole different kind of command.  It's related to the &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.3/SearchReference/Timechart"&gt;timechart&lt;/A&gt;, &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.3/SearchReference/Stats"&gt;stats&lt;/A&gt; and other commands.  They "transform" the output entirely, summarizing rows, calculating averages, or otherwise taking X number of events and making a smaller set of Y information out of them.&lt;/P&gt;

&lt;P&gt;You often use the two sets of commands together.&lt;/P&gt;

&lt;P&gt;As a sort of silly example, if you run &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search)|chart sum(price) by date,product
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will get the fields (columns) in a certain order with the sum of price last.  If you wanted, say, the sum of the price to be the first column, you could rearrange those results with 'table', like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search)|chart sum(price) by date,product | table sum(price), date, product
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There's better ways to do that, but I thought an example that you can already run would be the most useful.  Try changing the order of the items in the &lt;CODE&gt;table&lt;/CODE&gt; command to see what effect they have.&lt;/P&gt;

&lt;P&gt;So to put it all together and specifically answer your comment, when you tried to replace the &lt;CODE&gt;chart&lt;/CODE&gt; with &lt;CODE&gt;table&lt;/CODE&gt;, the field you wanted to display &lt;CODE&gt;sum(price&lt;/CODE&gt; no longer existed, because table can't MAKE a field like that, it it only a way to change HOW a field like that may be displayed.&lt;/P&gt;

&lt;P&gt;Does that help?&lt;/P&gt;

&lt;P&gt;Happy Splunking!&lt;BR /&gt;
-Rich&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 12:56:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/1-column-have-mutli/m-p/320778#M95864</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2017-10-21T12:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: 1 column  have mutli</title>
      <link>https://community.splunk.com/t5/Splunk-Search/1-column-have-mutli/m-p/320779#M95865</link>
      <description>&lt;P&gt;Also, I believe the Splunk education course "Fundamentals I" is free to take for everyone - You should do that!  It's a great course, go at your own pace, takes about a work-day's worth of work, but should really help with some of this stuff!&lt;/P&gt;

&lt;P&gt;Just go here to &lt;A href="https://www.splunk.com/view/SP-CAAAAH9?ac=News_Feb09_EDU"&gt;the Splunk Education pages&lt;/A&gt;, sign up for the course, and start Splunking!  (And no, they don't really spam your email or anything).  BTW that link seems pretty specifically for the "most recent" Edu page, so it may change if you are reading this post in 2018 or later.  In that case, just go to Splunk.com and click the "Education" link in the top right menu.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 13:00:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/1-column-have-mutli/m-p/320779#M95865</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2017-10-21T13:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: 1 column  have mutli</title>
      <link>https://community.splunk.com/t5/Splunk-Search/1-column-have-mutli/m-p/320780#M95866</link>
      <description>&lt;P&gt;i registered the free course before but didnt finish within 30day, how can i restart the course?&lt;/P&gt;</description>
      <pubDate>Sun, 22 Oct 2017 07:05:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/1-column-have-mutli/m-p/320780#M95866</guid>
      <dc:creator>kennethyeung</dc:creator>
      <dc:date>2017-10-22T07:05:11Z</dc:date>
    </item>
  </channel>
</rss>

