<?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: remove specific xml element with attribute (only start tag) in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-remove-specific-xml-element-with-attribute-only-start-tag/m-p/602007#M10841</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Sorry but this is specific element and its placement is not necessarily to start of the data field.&lt;/P&gt;&lt;P&gt;So in short I need to remove anything that starts with&lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&amp;lt;InfoNox_Interface&lt;/FONT&gt; and ends with&lt;FONT color="#FF0000"&gt; &amp;gt;.&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;below string should be replaced with nothing.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;InfoNox_Interface xmlns:xsd="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank" rel="noopener nofollow noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsi="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank" rel="noopener nofollow noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 06:23:54 GMT</pubDate>
    <dc:creator>dmuley</dc:creator>
    <dc:date>2022-06-16T06:23:54Z</dc:date>
    <item>
      <title>How to remove specific xml element with attribute (only start tag)?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-remove-specific-xml-element-with-attribute-only-start-tag/m-p/601997#M10839</link>
      <description>&lt;P&gt;I have the event that looks like below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;2022-06-15 19:59:57.489 threadId=L4GFP2275S1K class="ActiveSession" mname="NA" callId="NA" eventType="InMsg" data="&amp;lt;InfoNox_Interface xmlns:xsd="&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank" rel="noopener"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank" rel="noopener"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;"&amp;gt;&amp;lt;TestRQ&amp;gt;&amp;lt;Merchant_ID&amp;gt;testmid&amp;lt;/Merchant_ID&amp;gt;&amp;lt;/TestRQ&amp;gt;"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;and I would like to remove below xml element with attribute from data fields , How can I do that ?&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;lt;InfoNox_Interface xmlns:xsd="&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank" rel="noopener"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank" rel="noopener"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;"&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Results I want is&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;EM&gt;2022-06-15 19:59:57.489 threadId=L4GFP2275S1K class="ActiveSession" mname="NA" callId="NA" eventType="InMsg" data="&amp;lt;TestRQ&amp;gt;&amp;lt;Merchant_ID&amp;gt;testmid&amp;lt;/Merchant_ID&amp;gt;&amp;lt;/TestRQ&amp;gt;"&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 20:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-remove-specific-xml-element-with-attribute-only-start-tag/m-p/601997#M10839</guid>
      <dc:creator>dmuley</dc:creator>
      <dc:date>2022-06-16T20:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: remove specific xml element with attribute (only start tag)</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-remove-specific-xml-element-with-attribute-only-start-tag/m-p/602004#M10840</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex mode=sed "s/data=\"&amp;lt;[^&amp;gt;]+&amp;gt;/data=\"/g"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Jun 2022 06:09:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-remove-specific-xml-element-with-attribute-only-start-tag/m-p/602004#M10840</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-16T06:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: remove specific xml element with attribute (only start tag)</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-remove-specific-xml-element-with-attribute-only-start-tag/m-p/602007#M10841</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Sorry but this is specific element and its placement is not necessarily to start of the data field.&lt;/P&gt;&lt;P&gt;So in short I need to remove anything that starts with&lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&amp;lt;InfoNox_Interface&lt;/FONT&gt; and ends with&lt;FONT color="#FF0000"&gt; &amp;gt;.&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;below string should be replaced with nothing.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;InfoNox_Interface xmlns:xsd="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank" rel="noopener nofollow noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsi="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank" rel="noopener nofollow noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 06:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-remove-specific-xml-element-with-attribute-only-start-tag/m-p/602007#M10841</guid>
      <dc:creator>dmuley</dc:creator>
      <dc:date>2022-06-16T06:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: remove specific xml element with attribute (only start tag)</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-remove-specific-xml-element-with-attribute-only-start-tag/m-p/602010#M10842</link>
      <description>&lt;P&gt;Is there anything else you forgot to mention?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex mode=sed "s/\&amp;lt;InfoNox_Interface xmlns:xsd=\"http:\/\/www\.w3\.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www\.w3\.org\/2001\/XMLSchema-instance\"\&amp;gt;//g"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Jun 2022 06:30:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-remove-specific-xml-element-with-attribute-only-start-tag/m-p/602010#M10842</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-16T06:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: remove specific xml element with attribute (only start tag)</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-remove-specific-xml-element-with-attribute-only-start-tag/m-p/602012#M10843</link>
      <description>&lt;P&gt;Yes you are such a kind person. thanks a lot&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 06:33:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-remove-specific-xml-element-with-attribute-only-start-tag/m-p/602012#M10843</guid>
      <dc:creator>dmuley</dc:creator>
      <dc:date>2022-06-16T06:33:53Z</dc:date>
    </item>
  </channel>
</rss>

