<?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: automatic nested field extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/automatic-nested-field-extraction/m-p/32463#M6765</link>
    <description>&lt;P&gt;You don't. see my other answer.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Aug 2010 08:17:47 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-08-18T08:17:47Z</dc:date>
    <item>
      <title>automatic nested field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/automatic-nested-field-extraction/m-p/32460#M6762</link>
      <description>&lt;P&gt;I'm struggling with trying to extract multiple fields from a multivalue Active Directory attribute.  For instance, given the following object:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;dcName=w2k3r2.demo.dev
admonEventType=Update
Names:
    objectCategory=CN=Service-Connection-Point,CN=Schema,CN=Configuration,DC=demo,DC=dev
    ...
    distinguishedName=CN=bsmith,CN=Users,CN=default,CN=Zones,CN=Centrify,CN=Program Data,DC=demo,DC=dev
    objectGUID=cffb0829-0642-134c-2ef1-f03cc696e10b
          ...
    keywords=addr:253|animal:rabbit|color:blue
    showInAdvancedViewOnly=TRUE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I still want objectGUID and the other single value attributes parsed, but in this example, I also would like addr, animal and color parsed out as their own key-value pairs (also, I don't want to have to know the keynames apriori).   Is there a preprocessing step where I can break the multi-value attributes into separate lines, or do I need to replace the ad-kv "(?&amp;lt;_KEY_1&amp;gt;[\w-]+)=(?&amp;lt;_VAL_1&amp;gt;[^\r\n]*)" tranform with some incredibly gnarly regex?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 03:22:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/automatic-nested-field-extraction/m-p/32460#M6762</guid>
      <dc:creator>mpatnode</dc:creator>
      <dc:date>2010-08-18T03:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: automatic nested field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/automatic-nested-field-extraction/m-p/32461#M6763</link>
      <description>&lt;P&gt;Do you only want this in the "keywords" field or could the pipe delimited key:value pairs occur as values of other fields as well?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 03:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/automatic-nested-field-extraction/m-p/32461#M6763</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-08-18T03:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: automatic nested field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/automatic-nested-field-extraction/m-p/32462#M6764</link>
      <description>&lt;P&gt;This was trivial, once I found the right doc&lt;/P&gt;

&lt;P&gt;In transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[keywords-kv]
SOURCE = keywords
DELIMS = "|", ":"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then in my search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="ActiveDirectory" keywords | extract keywords-kv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So now, I'd like to do this for all ActiveDirectory objects, and handle it both in keywords or description.   It would be nice if I didn't need to add the "extract" pipes. &lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 08:05:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/automatic-nested-field-extraction/m-p/32462#M6764</guid>
      <dc:creator>mpatnode</dc:creator>
      <dc:date>2010-08-18T08:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: automatic nested field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/automatic-nested-field-extraction/m-p/32463#M6765</link>
      <description>&lt;P&gt;You don't. see my other answer.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 08:17:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/automatic-nested-field-extraction/m-p/32463#M6765</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-08-18T08:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: automatic nested field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/automatic-nested-field-extraction/m-p/32464#M6766</link>
      <description>&lt;P&gt;Put in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ActiveDirectory]
REPORT-MESSAGE = ad-kv,keywords-kv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This overrides the default extraction (which is just "ad-kv"), and listing "keywords-kv" on the same line after it ensures that it runs &lt;EM&gt;after&lt;/EM&gt; the "ad-kv" has had a chance to extract the keywords field first.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 08:20:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/automatic-nested-field-extraction/m-p/32464#M6766</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-08-18T08:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: automatic nested field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/automatic-nested-field-extraction/m-p/32465#M6767</link>
      <description>&lt;P&gt;Much better, but now can I do this before the event is stored so the fields look like first class fields in the event?   In particular, I want to detect a change to one of the keyword fields, currently diff only shows me the keyword attribute changed.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 08:27:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/automatic-nested-field-extraction/m-p/32465#M6767</guid>
      <dc:creator>mpatnode</dc:creator>
      <dc:date>2010-08-18T08:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: automatic nested field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/automatic-nested-field-extraction/m-p/32466#M6768</link>
      <description>&lt;P&gt;It doesn't matter whether the field is separately indexed or not. Please note that the ad-kv fields are also &lt;EM&gt;not&lt;/EM&gt; extracted at index time, and are not any more "first-class" than the keyword fields. It simply appears that way because "diff" operates line-by-line against the full raw text, and the non-keyword fields happen to be on their own lines. What you really need is a field-by-field diff, which sadly Splunk does not come with.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 09:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/automatic-nested-field-extraction/m-p/32466#M6768</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-08-18T09:00:05Z</dc:date>
    </item>
  </channel>
</rss>

