<?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: extract command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extract-command/m-p/263634#M79123</link>
    <description>&lt;P&gt;Try specifying space-character as a pair delimiter as well.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype=orange | extract pairdelim="; " kvdelim=":"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For me that gave the correct and expected result. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;user:hgfh
std:6
status:success
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I suspect that since the kv extract is "mid-sentence" it tries to outrule anything that does not fit exactly with the specified pair delimiter. Thus resulting in the return of only two kv-pairs unless you specify space and semicolon as pair delimiters.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2016 14:10:50 GMT</pubDate>
    <dc:creator>tormodbp</dc:creator>
    <dc:date>2016-07-18T14:10:50Z</dc:date>
    <item>
      <title>extract command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-command/m-p/263633#M79122</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;This is sample event. I tried to explore extract command.&lt;/P&gt;

&lt;P&gt;index=* sourcetype=orange | extract pairdelim=";",  kvdelim=":"&lt;/P&gt;

&lt;P&gt;4/18/161:00:00.000 PM 2016-04-18 13:00:00 user:hgfh;std:6;status:success&lt;/P&gt;

&lt;P&gt;For the above event its only extracted std as 6 and status as success but not the user. Why is that like. So is it expecting ";" before and after?&lt;/P&gt;

&lt;P&gt;And cant we use kvdelim alone in our queries?&lt;BR /&gt;
index=* sourcetype=orange | extract kvdelim=":"&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 10:45:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-command/m-p/263633#M79122</guid>
      <dc:creator>splunkn</dc:creator>
      <dc:date>2016-07-18T10:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: extract command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-command/m-p/263634#M79123</link>
      <description>&lt;P&gt;Try specifying space-character as a pair delimiter as well.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype=orange | extract pairdelim="; " kvdelim=":"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For me that gave the correct and expected result. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;user:hgfh
std:6
status:success
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I suspect that since the kv extract is "mid-sentence" it tries to outrule anything that does not fit exactly with the specified pair delimiter. Thus resulting in the return of only two kv-pairs unless you specify space and semicolon as pair delimiters.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 14:10:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-command/m-p/263634#M79123</guid>
      <dc:creator>tormodbp</dc:creator>
      <dc:date>2016-07-18T14:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: extract command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-command/m-p/263635#M79124</link>
      <description>&lt;P&gt;Thanks tomodbp. Its worked !! aren't we able to use kvdelim alone?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 06:34:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-command/m-p/263635#M79124</guid>
      <dc:creator>splunkn</dc:creator>
      <dc:date>2016-07-19T06:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: extract command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-command/m-p/263636#M79125</link>
      <description>&lt;P&gt;No problem!&lt;BR /&gt;
I would think that you should be able to, but I am unable to find any documentation to support that claim. I've tried to experiment with the parameters. So far I have not found any other solution using ´kv´ / ´extract´, sorry.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 07:04:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-command/m-p/263636#M79125</guid>
      <dc:creator>tormodbp</dc:creator>
      <dc:date>2016-07-19T07:04:00Z</dc:date>
    </item>
  </channel>
</rss>

