<?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: splitting data and saving the each result in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/splitting-data-and-saving-the-each-result/m-p/199406#M39476</link>
    <description>&lt;P&gt;oh ... my mistake! &lt;/P&gt;

&lt;P&gt;the table name is genre &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2014 09:17:17 GMT</pubDate>
    <dc:creator>changwoo</dc:creator>
    <dc:date>2014-01-10T09:17:17Z</dc:date>
    <item>
      <title>splitting data and saving the each result</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splitting-data-and-saving-the-each-result/m-p/199404#M39474</link>
      <description>&lt;P&gt;i have raw data like &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;cat | dog | ele&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;cat | dog &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;dog | ele&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;this field name is catego&lt;BR /&gt;
result should be counting like this =&amp;gt; cat = 2, dog =3, ele =2 &lt;/P&gt;

&lt;P&gt;sourcetype=movie   | eval n= split(genre,"|") |table count(n) by n  &amp;lt; = this is not splitting the string &lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 08:18:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splitting-data-and-saving-the-each-result/m-p/199404#M39474</guid>
      <dc:creator>changwoo</dc:creator>
      <dc:date>2014-01-10T08:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: splitting data and saving the each result</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splitting-data-and-saving-the-each-result/m-p/199405#M39475</link>
      <description>&lt;P&gt;OK, some issues here.&lt;/P&gt;

&lt;P&gt;For one, the field name is catego, but in your search you use "genre"?&lt;BR /&gt;
And then, &lt;CODE&gt;table&lt;/CODE&gt; is no statistical command. It only shows the fields you supply as arguments. count(n) is no field, neither is "by".&lt;/P&gt;

&lt;P&gt;Maybe you want something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=movie | eval n=split(catego,"|") | stats count by n
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jan 2014 08:31:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splitting-data-and-saving-the-each-result/m-p/199405#M39475</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-01-10T08:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: splitting data and saving the each result</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splitting-data-and-saving-the-each-result/m-p/199406#M39476</link>
      <description>&lt;P&gt;oh ... my mistake! &lt;/P&gt;

&lt;P&gt;the table name is genre &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 09:17:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splitting-data-and-saving-the-each-result/m-p/199406#M39476</guid>
      <dc:creator>changwoo</dc:creator>
      <dc:date>2014-01-10T09:17:17Z</dc:date>
    </item>
  </channel>
</rss>

