<?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: Building KV Pairs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Building-KV-Pairs/m-p/41324#M9573</link>
    <description>&lt;P&gt;Thanks for your responce but this doesn't seem to work.  No change in the results I get at all.  I wonder if it could be the % characters.  It certainly doesn't build KV pairs as I would expect it to.&lt;/P&gt;

&lt;P&gt;Any other thoughts anyone?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Aug 2012 16:40:28 GMT</pubDate>
    <dc:creator>Andrew_Banman</dc:creator>
    <dc:date>2012-08-23T16:40:28Z</dc:date>
    <item>
      <title>Building KV Pairs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Building-KV-Pairs/m-p/41322#M9571</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;

&lt;P&gt;I am trying to build KV pairs from some UNIX command output.  The log entries look like the output below.  In this case I would like to build keys from the headers (%usr, %sys, %wio, %idel) and values for each from the values shown (2, 5, 0, 93).  I will then graph multiple entries over time.  While the preview here shows this all in a line, the log is a preformatted table.&lt;/P&gt;

&lt;P&gt;HP-UX van-sama B.11.31 U ia64    08/21/12&lt;BR /&gt;
12:49:47    %usr    %sys    %wio   %idle&lt;BR /&gt;
12:49:48       2       5       0      93&lt;/P&gt;

&lt;P&gt;The likely search function seems to be "extract(kv)" but I am unclear on how to go about this and the examples in the docs seem weak.&lt;/P&gt;

&lt;P&gt;Can anyone put me on the right track?&lt;/P&gt;

&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2012 22:00:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Building-KV-Pairs/m-p/41322#M9571</guid>
      <dc:creator>Andrew_Banman</dc:creator>
      <dc:date>2012-08-21T22:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Building KV Pairs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Building-KV-Pairs/m-p/41323#M9572</link>
      <description>&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Multikv"&gt;Multikv&lt;/A&gt; seems more appropriate than extract in your case:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | multikv fields %usr %sys %wio %idle
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Aug 2012 05:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Building-KV-Pairs/m-p/41323#M9572</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2012-08-22T05:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Building KV Pairs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Building-KV-Pairs/m-p/41324#M9573</link>
      <description>&lt;P&gt;Thanks for your responce but this doesn't seem to work.  No change in the results I get at all.  I wonder if it could be the % characters.  It certainly doesn't build KV pairs as I would expect it to.&lt;/P&gt;

&lt;P&gt;Any other thoughts anyone?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2012 16:40:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Building-KV-Pairs/m-p/41324#M9573</guid>
      <dc:creator>Andrew_Banman</dc:creator>
      <dc:date>2012-08-23T16:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Building KV Pairs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Building-KV-Pairs/m-p/41325#M9574</link>
      <description>&lt;P&gt;Multikv will replace non alphanumeric chars with underscore. &lt;BR /&gt;
See if this does the trick: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... | multikv fields _usr _sys _wio _idle&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;d.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2012 20:36:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Building-KV-Pairs/m-p/41325#M9574</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2012-08-23T20:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Building KV Pairs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Building-KV-Pairs/m-p/41326#M9575</link>
      <description>&lt;P&gt;Good idea but it still failes.  Thanks for the help.  Multikv seems the answer but doesn't do what we expect it too.  Not sure why!  Thanks again for the ideas &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2012 22:14:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Building-KV-Pairs/m-p/41326#M9575</guid>
      <dc:creator>Andrew_Banman</dc:creator>
      <dc:date>2012-08-23T22:14:10Z</dc:date>
    </item>
  </channel>
</rss>

