<?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 Break script output into top values on multi value keys in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Break-script-output-into-top-values-on-multi-value-keys/m-p/48385#M9170</link>
    <description>&lt;P&gt;I have a script that produces output like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;foo=abc, bar=efg, size=100
foo=abc, bar=kkk, size=102
foo=cba, bar=fff, size=110
foo=cba, bar=ppp, size=90
foo=aaa, bar=bbb, size=95
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I like to now get a chart showing the top values something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;foo/bar                size
-------                ----
cba/fff                110
abc/kkk                102
abc/efg                100
aaa/bbb                 95
cba/ppp                 90
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any suggestions. Do I need to break this up into separate events? &lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2012 14:35:37 GMT</pubDate>
    <dc:creator>scalexan62</dc:creator>
    <dc:date>2012-01-11T14:35:37Z</dc:date>
    <item>
      <title>Break script output into top values on multi value keys</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Break-script-output-into-top-values-on-multi-value-keys/m-p/48385#M9170</link>
      <description>&lt;P&gt;I have a script that produces output like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;foo=abc, bar=efg, size=100
foo=abc, bar=kkk, size=102
foo=cba, bar=fff, size=110
foo=cba, bar=ppp, size=90
foo=aaa, bar=bbb, size=95
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I like to now get a chart showing the top values something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;foo/bar                size
-------                ----
cba/fff                110
abc/kkk                102
abc/efg                100
aaa/bbb                 95
cba/ppp                 90
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any suggestions. Do I need to break this up into separate events? &lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2012 14:35:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Break-script-output-into-top-values-on-multi-value-keys/m-p/48385#M9170</guid>
      <dc:creator>scalexan62</dc:creator>
      <dc:date>2012-01-11T14:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Break script output into top values on multi value keys</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Break-script-output-into-top-values-on-multi-value-keys/m-p/48386#M9171</link>
      <description>&lt;P&gt;I think this will work for you:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | multikv noheader=t | rex field=Column_1 "foo=(?&amp;lt;foo&amp;gt;.*)" | rex field=Column_2 "bar=(?&amp;lt;bar&amp;gt;.*)" | rex field=Column_3 "size=(?&amp;lt;size&amp;gt;.*)" | eval "foo/bar"=foo."/".bar | top size by foo/bar showcount=f showperc=f
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 Jan 2012 01:31:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Break-script-output-into-top-values-on-multi-value-keys/m-p/48386#M9171</guid>
      <dc:creator>sbrant_tt</dc:creator>
      <dc:date>2012-01-14T01:31:26Z</dc:date>
    </item>
  </channel>
</rss>

