<?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 only xml part from an event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extract-only-xml-part-from-an-event/m-p/681686#M232945</link>
    <description>&lt;P&gt;We need more information. Are you trying to extract at search time or index time?&amp;nbsp; Are you trying keep the XML or discard it?&amp;nbsp; Please share a sanitized sample event or two.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Mar 2024 15:43:45 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-03-22T15:43:45Z</dc:date>
    <item>
      <title>extract only xml part from an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-only-xml-part-from-an-event/m-p/681670#M232939</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;my event has unstructured data i.e. few strings than xml part than few more strings and another xml follow by few more strings.&lt;BR /&gt;How do I extract only the xml parts from the event when there is no pattern&amp;nbsp; to the string i.e. number of lines before and after the xml nor the string content has a pattern.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 13:45:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-only-xml-part-from-an-event/m-p/681670#M232939</guid>
      <dc:creator>eranhauser</dc:creator>
      <dc:date>2024-03-22T13:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: extract only xml part from an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-only-xml-part-from-an-event/m-p/681686#M232945</link>
      <description>&lt;P&gt;We need more information. Are you trying to extract at search time or index time?&amp;nbsp; Are you trying keep the XML or discard it?&amp;nbsp; Please share a sanitized sample event or two.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 15:43:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-only-xml-part-from-an-event/m-p/681686#M232945</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-03-22T15:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: extract only xml part from an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-only-xml-part-from-an-event/m-p/681698#M232946</link>
      <description>&lt;P&gt;I am trying to get values from xml part of an event. The event starts with few lines than it has xml part, after that few more lines and another xml part. I want to extract at first only the parts of the event that are in xml format.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 16:07:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-only-xml-part-from-an-event/m-p/681698#M232946</guid>
      <dc:creator>eranhauser</dc:creator>
      <dc:date>2024-03-22T16:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: extract only xml part from an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-only-xml-part-from-an-event/m-p/681711#M232953</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;until you give some sample data to us, it’s hard to tell exactly how to do it. Here is some ideas how to proceed with this case&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
| rex "....(?&amp;lt;yourXML&amp;gt;....until it ends)...."
| fields _time yourXML
| xmlkv maxinputs=99999 yourXML
....&lt;/LI-CODE&gt;&lt;P&gt;r. Ismo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 17:24:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-only-xml-part-from-an-event/m-p/681711#M232953</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-03-22T17:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: extract only xml part from an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-only-xml-part-from-an-event/m-p/681722#M232954</link>
      <description>&lt;P&gt;it loos like&lt;BR /&gt;this is the first line&lt;BR /&gt;this is the second line&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE....&amp;gt;&lt;/P&gt;&lt;P&gt;......... the rest of the xml is here&lt;/P&gt;&lt;P&gt;this is the third line&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE...&amp;gt;&lt;/P&gt;&lt;P&gt;.......rest of the xml is here&lt;/P&gt;&lt;P&gt;this is the fourth line&lt;/P&gt;&lt;P&gt;this is the fifth line&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 18:35:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-only-xml-part-from-an-event/m-p/681722#M232954</guid>
      <dc:creator>eranhauser</dc:creator>
      <dc:date>2024-03-22T18:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: extract only xml part from an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-only-xml-part-from-an-event/m-p/681723#M232955</link>
      <description>&lt;P&gt;Is there any word or some token how you know where first xml part will ends or is it just end of line and then 3rd line is some other text?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 18:38:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-only-xml-part-from-an-event/m-p/681723#M232955</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-03-22T18:38:07Z</dc:date>
    </item>
  </channel>
</rss>

