<?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 extract multiple events into multiple fields using rex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extract-multiple-events-into-multiple-fields-using-rex/m-p/235952#M70085</link>
    <description>&lt;P&gt;I have events in below format from an XML source. I want to extract below values in to separate events into fields status, start and end&lt;/P&gt;

&lt;P&gt;I tried &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| table temp | mvexpand temp | rex field=temp "(?&amp;lt;status&amp;gt;.*)#(?&amp;lt;start&amp;gt;.*)#(?&amp;lt;end&amp;gt;.*)#"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but no luck&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;PASS PASS PASS PASS PASS PASS PASS PASS PASS PASS PASS PASS PASS PASS PASS#20150921 10:00:14.562 20150921 10:00:14.570 20150921 10:00:14.577 20150921 10:00:14.584 20150921 10:00:14.591 20150921 10:00:14.599 20150921 10:00:14.606 20150921 10:00:14.611 20150921 10:00:14.631 20150921 10:00:14.641 20150921 10:00:14.650 20150921 10:00:14.687 20150921 10:00:14.705 20150921 10:00:14.734 20150921 10:00:14.747#20150921 10:00:14.568 20150921 10:00:14.574 20150921 10:00:14.582 20150921 10:00:14.588 20150921 10:00:14.596 20150921 10:00:14.604 20150921 10:00:14.609 20150921 10:00:14.627 20150921 10:00:14.639 20150921 10:00:14.648 20150921 10:00:14.684 20150921 10:00:14.703 20150921 10:00:14.716 20150921 10:00:14.745 20150921 10:00:14.750
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 21 Sep 2015 08:20:37 GMT</pubDate>
    <dc:creator>i2sheri</dc:creator>
    <dc:date>2015-09-21T08:20:37Z</dc:date>
    <item>
      <title>extract multiple events into multiple fields using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-multiple-events-into-multiple-fields-using-rex/m-p/235952#M70085</link>
      <description>&lt;P&gt;I have events in below format from an XML source. I want to extract below values in to separate events into fields status, start and end&lt;/P&gt;

&lt;P&gt;I tried &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| table temp | mvexpand temp | rex field=temp "(?&amp;lt;status&amp;gt;.*)#(?&amp;lt;start&amp;gt;.*)#(?&amp;lt;end&amp;gt;.*)#"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but no luck&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;PASS PASS PASS PASS PASS PASS PASS PASS PASS PASS PASS PASS PASS PASS PASS#20150921 10:00:14.562 20150921 10:00:14.570 20150921 10:00:14.577 20150921 10:00:14.584 20150921 10:00:14.591 20150921 10:00:14.599 20150921 10:00:14.606 20150921 10:00:14.611 20150921 10:00:14.631 20150921 10:00:14.641 20150921 10:00:14.650 20150921 10:00:14.687 20150921 10:00:14.705 20150921 10:00:14.734 20150921 10:00:14.747#20150921 10:00:14.568 20150921 10:00:14.574 20150921 10:00:14.582 20150921 10:00:14.588 20150921 10:00:14.596 20150921 10:00:14.604 20150921 10:00:14.609 20150921 10:00:14.627 20150921 10:00:14.639 20150921 10:00:14.648 20150921 10:00:14.684 20150921 10:00:14.703 20150921 10:00:14.716 20150921 10:00:14.745 20150921 10:00:14.750
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Sep 2015 08:20:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-multiple-events-into-multiple-fields-using-rex/m-p/235952#M70085</guid>
      <dc:creator>i2sheri</dc:creator>
      <dc:date>2015-09-21T08:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: extract multiple events into multiple fields using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-multiple-events-into-multiple-fields-using-rex/m-p/235953#M70086</link>
      <description>&lt;P&gt;Can you please paste your original xml for better understanding.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 12:32:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-multiple-events-into-multiple-fields-using-rex/m-p/235953#M70086</guid>
      <dc:creator>badrinath_itrs</dc:creator>
      <dc:date>2015-09-21T12:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: extract multiple events into multiple fields using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-multiple-events-into-multiple-fields-using-rex/m-p/235954#M70087</link>
      <description>&lt;P&gt;Please see &lt;A href="http://answers.splunk.com/answers/310206/parse-xml-file-with-repeating-events-and-indexed-a.html"&gt;http://answers.splunk.com/answers/310206/parse-xml-file-with-repeating-events-and-indexed-a.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 01:52:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-multiple-events-into-multiple-fields-using-rex/m-p/235954#M70087</guid>
      <dc:creator>i2sheri</dc:creator>
      <dc:date>2015-09-22T01:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: extract multiple events into multiple fields using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-multiple-events-into-multiple-fields-using-rex/m-p/235955#M70088</link>
      <description>&lt;P&gt;It works with&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| table temp | mvexpand temp | rex field=temp "(?&amp;lt;status&amp;gt;.*)#(?&amp;lt;start&amp;gt;.*)#(?&amp;lt;end&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just removed the # at end&lt;BR /&gt;
and removed&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| xmlkv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;from base search&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 05:47:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-multiple-events-into-multiple-fields-using-rex/m-p/235955#M70088</guid>
      <dc:creator>i2sheri</dc:creator>
      <dc:date>2015-09-22T05:47:23Z</dc:date>
    </item>
  </channel>
</rss>

