<?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: Help needed in the extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-needed-in-the-extraction/m-p/196252#M56582</link>
    <description>&lt;P&gt;I have tried that, but thats not the way I want it. I want it as HOST_NAME as a field with values of hostname234 and hostname 123.So It has to be made to a key=value pair as many users of this data are not technical people.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Mar 2014 13:36:23 GMT</pubDate>
    <dc:creator>theouhuios</dc:creator>
    <dc:date>2014-03-20T13:36:23Z</dc:date>
    <item>
      <title>Help needed in the extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-needed-in-the-extraction/m-p/196250#M56580</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I have a data which has multiple rows under a single event. I want to extract all of them on their "name" along with value. KV_MODE = xml doesn't work on this as the format is a bit different . So I am using transform.conf file to be able to extract this. I have also listed the transforms which I am trying. Any ideas if this is the right way or if there is any better way to do this?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;ResultSetData&amp;gt;
      &amp;lt;Row&amp;gt;
        &amp;lt;Column name="HOST_NAME"&amp;gt;hostname234&amp;lt;/Column&amp;gt;
        &amp;lt;Column name="INSTANCE_NAME"&amp;gt;xxxxxx/Column&amp;gt;
        &amp;lt;Column name="USERNAME"&amp;gt;abc&amp;lt;/Column&amp;gt;
        &amp;lt;Column name="ACCOUNT_STATUS"&amp;gt;OPEN&amp;lt;/Column&amp;gt;
        &amp;lt;Column name="CREATED"&amp;gt;12/09/2013 15:01:31&amp;lt;/Column&amp;gt;
        &amp;lt;Column name="EXPIRY_DATE"&amp;gt;06/07/2014 15:01:31&amp;lt;/Column&amp;gt;
        &amp;lt;Column name="DEFAULT_TABLESPACE"&amp;gt;zzzzz&amp;lt;/Column&amp;gt;
        &amp;lt;Column name="DEFAULT_PROFILE"&amp;gt;NO&amp;lt;/Column&amp;gt;
      &amp;lt;/Row&amp;gt;
    &amp;lt;Row&amp;gt;
    &amp;lt;Column name="HOST_NAME"&amp;gt;hostname123&amp;lt;/Column&amp;gt;
    &amp;lt;Column name="INSTANCE_NAME"&amp;gt;xxxxxx&amp;lt;/Column&amp;gt;
    &amp;lt;Column name="USERNAME"&amp;gt;abc123&amp;lt;/Column&amp;gt;
    &amp;lt;Column name="ACCOUNT_STATUS"&amp;gt;OPEN&amp;lt;/Column&amp;gt;
    &amp;lt;Column name="CREATED"&amp;gt;10/17/2012 08:04:56&amp;lt;/Column&amp;gt;
    &amp;lt;Column name="EXPIRY_DATE"&amp;gt;01/19/2013 15:44:13&amp;lt;/Column&amp;gt;
    &amp;lt;Column name="DEFAULT_TABLESPACE"&amp;gt;zzzzz&amp;lt;/Column&amp;gt;
    &amp;lt;Column name="DEFAULT_PROFILE"&amp;gt;NO&amp;lt;/Column&amp;gt;
  &amp;lt;/Row&amp;gt;
&amp;lt;/ResultSetData&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[xml-extr]
REGEX = name=\"(\S+)?\"\&amp;gt;(\S+)?\&amp;lt;
FORMAT = $1::$2
REPEAT_MATCH = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Mar 2014 13:19:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-needed-in-the-extraction/m-p/196250#M56580</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2014-03-20T13:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in the extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-needed-in-the-extraction/m-p/196251#M56581</link>
      <description>&lt;P&gt;Assuming that your example is 1 full event, it's not pure XML. You're lacking a closing  for instance, but maybe&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | spath&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Can help you extract the fields that you want. A quick test gives me the fields Column{@name} and Column that might contain the information you want.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 13:30:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-needed-in-the-extraction/m-p/196251#M56581</guid>
      <dc:creator>lcrielaa</dc:creator>
      <dc:date>2014-03-20T13:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in the extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-needed-in-the-extraction/m-p/196252#M56582</link>
      <description>&lt;P&gt;I have tried that, but thats not the way I want it. I want it as HOST_NAME as a field with values of hostname234 and hostname 123.So It has to be made to a key=value pair as many users of this data are not technical people.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 13:36:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-needed-in-the-extraction/m-p/196252#M56582</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2014-03-20T13:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in the extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-needed-in-the-extraction/m-p/196253#M56583</link>
      <description>&lt;P&gt;Hi theouhuios ,&lt;/P&gt;

&lt;P&gt;You can use the following in ur transforms.conf .&lt;/P&gt;

&lt;P&gt;[xml-extr]&lt;BR /&gt;
REGEX=name=\"HOST_NAME\"&amp;gt;(?&lt;HOST_NAME&gt;[^&amp;lt;]*)&amp;lt;&lt;BR /&gt;
MV_ADD = true&lt;/HOST_NAME&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps !&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:11:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-needed-in-the-extraction/m-p/196253#M56583</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2020-09-28T16:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in the extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-needed-in-the-extraction/m-p/196254#M56584</link>
      <description>&lt;P&gt;That will extract just the hostname. I want to avoid writing multiple regexes for each column field. I am trying for a way to capture anything in the name part as a field which a user can search on with corresponding values for it in multiple lines.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:38:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-needed-in-the-extraction/m-p/196254#M56584</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2014-03-20T14:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in the extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-needed-in-the-extraction/m-p/196255#M56585</link>
      <description>&lt;P&gt;Use this:&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[xml-extr]
REGEX = name=\"(\w+)?\"\&amp;gt;([a-zA-Z0-9:// ]*)?\&amp;lt;
FORMAT = $1::$2
REPEAT_MATCH = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Mar 2014 19:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-needed-in-the-extraction/m-p/196255#M56585</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-03-20T19:01:50Z</dc:date>
    </item>
  </channel>
</rss>

