<?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 to split Data in one column to multiple columns? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-Data-in-one-column-to-multiple-columns/m-p/317743#M95055</link>
    <description>&lt;P&gt;The answer of somesoni 2 is good.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; your current search giving fields location product price
 | xyseries location product price
 | stats sum(product*) as product* by location
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 03 Mar 2018 01:24:28 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2018-03-03T01:24:28Z</dc:date>
    <item>
      <title>How to split Data in one column to multiple columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-Data-in-one-column-to-multiple-columns/m-p/317740#M95052</link>
      <description>&lt;P&gt;hi, &lt;/P&gt;

&lt;P&gt;I had the data in the following format&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;location        product        price
location1      Product1      price1
location1      product2      price2
location2      product1      price3
location2      product2      price4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to re-align it in following format&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;location       product1      product2
location1      price1          price2
location2      price3          price4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can do it by splitting column by data model or pivot from base query. but is there any way for the using the SPL the following can be achieved.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 15:19:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-Data-in-one-column-to-multiple-columns/m-p/317740#M95052</guid>
      <dc:creator>himpor</dc:creator>
      <dc:date>2018-03-02T15:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to split Data in one column to multiple columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-Data-in-one-column-to-multiple-columns/m-p/317741#M95053</link>
      <description>&lt;P&gt;Try this!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search)
|table location product price
|eval {product}=price
|stats sum(product*) as product* by location
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Mar 2018 15:55:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-Data-in-one-column-to-multiple-columns/m-p/317741#M95053</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-03-02T15:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to split Data in one column to multiple columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-Data-in-one-column-to-multiple-columns/m-p/317742#M95054</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving fields location product price
| xyseries location product price
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See more about xyseries command here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Xyseries"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Xyseries&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:36:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-Data-in-one-column-to-multiple-columns/m-p/317742#M95054</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-02T16:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to split Data in one column to multiple columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-Data-in-one-column-to-multiple-columns/m-p/317743#M95055</link>
      <description>&lt;P&gt;The answer of somesoni 2 is good.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; your current search giving fields location product price
 | xyseries location product price
 | stats sum(product*) as product* by location
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 03 Mar 2018 01:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-Data-in-one-column-to-multiple-columns/m-p/317743#M95055</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-03-03T01:24:28Z</dc:date>
    </item>
  </channel>
</rss>

