<?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: Complex kv extraction in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Complex-kv-extraction/m-p/160890#M7640</link>
    <description>&lt;P&gt;Well, you could do this in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetypename]
EXTRACT-e1=caller_file_name\|(?&amp;lt;caller_file_name&amp;gt;.*?)\|
EXTRACT-e1=caller_package\|(?&amp;lt;caller_package&amp;gt;.*?)\|
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;etc.&lt;/P&gt;

&lt;P&gt;It isn't pretty but it is exact. If you try to extract using the REPORT option, with DELIMs, etc. -  it won't work because Splunk expects name-value pairs. And your data doesn't start with a name-value pair. But you've already figured that out...&lt;/P&gt;</description>
    <pubDate>Wed, 17 Dec 2014 22:50:07 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2014-12-17T22:50:07Z</dc:date>
    <item>
      <title>Complex kv extraction</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Complex-kv-extraction/m-p/160889#M7639</link>
      <description>&lt;P&gt;I have a log which has the following format:&lt;BR /&gt;
$DateTime|$ServerName|caller_file_name|$caller_file_name|caller_package|$caller_package|...&lt;/P&gt;

&lt;P&gt;The DateTime and ServerName values are always there, but the kv pairs afterwards are variable.&lt;BR /&gt;
I tried using the extract command but it sets $DateTime=$ServerName.&lt;BR /&gt;
What's the best way to extract the kv pairs?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:28:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Complex-kv-extraction/m-p/160889#M7639</guid>
      <dc:creator>mfscully</dc:creator>
      <dc:date>2020-09-28T18:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Complex kv extraction</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Complex-kv-extraction/m-p/160890#M7640</link>
      <description>&lt;P&gt;Well, you could do this in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetypename]
EXTRACT-e1=caller_file_name\|(?&amp;lt;caller_file_name&amp;gt;.*?)\|
EXTRACT-e1=caller_package\|(?&amp;lt;caller_package&amp;gt;.*?)\|
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;etc.&lt;/P&gt;

&lt;P&gt;It isn't pretty but it is exact. If you try to extract using the REPORT option, with DELIMs, etc. -  it won't work because Splunk expects name-value pairs. And your data doesn't start with a name-value pair. But you've already figured that out...&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2014 22:50:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Complex-kv-extraction/m-p/160890#M7640</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-12-17T22:50:07Z</dc:date>
    </item>
  </channel>
</rss>

