<?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 can I add new columns and name them by result or subsearch? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-new-columns-and-name-them-by-result-or-subsearch/m-p/199240#M57681</link>
    <description>&lt;P&gt;Hi @millie be sure to accept your answer so other users know it's correct when searching for similar issues &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jun 2014 01:27:33 GMT</pubDate>
    <dc:creator>ppablo</dc:creator>
    <dc:date>2014-06-18T01:27:33Z</dc:date>
    <item>
      <title>How can I add new columns and name them by result or subsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-new-columns-and-name-them-by-result-or-subsearch/m-p/199238#M57679</link>
      <description>&lt;P&gt;Hi! &lt;BR /&gt;I would like to draw a chart with stacked bars , but I don't know how to add columns depend on result. for example, I first search and get the result as:&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
fieldA    fieldB&lt;BR /&gt;
  A         1&lt;BR /&gt;
  B         2&lt;BR /&gt;
  C         3&lt;BR /&gt;
  D         4&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But for drawing the chart, I need a result table like this, fields named by the result I got :&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
fieldA    A    B    C    D&lt;BR /&gt;
dummy     1    2    3    4&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The result might not be ABCD only. How could I do something like this? Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 05:48:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-new-columns-and-name-them-by-result-or-subsearch/m-p/199238#M57679</guid>
      <dc:creator>millie</dc:creator>
      <dc:date>2014-06-17T05:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add new columns and name them by result or subsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-new-columns-and-name-them-by-result-or-subsearch/m-p/199239#M57680</link>
      <description>&lt;P&gt;Problem has been solved now, I've found a search command called "xyseries". I search as:&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
search ... | xyseries fieldA fieldB fieldB | addcoltotals labelfield=fieldA label="dummy" | where fieldA="dummy"&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 06:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-new-columns-and-name-them-by-result-or-subsearch/m-p/199239#M57680</guid>
      <dc:creator>millie</dc:creator>
      <dc:date>2014-06-17T06:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add new columns and name them by result or subsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-new-columns-and-name-them-by-result-or-subsearch/m-p/199240#M57681</link>
      <description>&lt;P&gt;Hi @millie be sure to accept your answer so other users know it's correct when searching for similar issues &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 01:27:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-new-columns-and-name-them-by-result-or-subsearch/m-p/199240#M57681</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2014-06-18T01:27:33Z</dc:date>
    </item>
  </channel>
</rss>

