<?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 Transforming special characters in XML in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Transforming-special-characters-in-XML/m-p/124891#M25745</link>
    <description>&lt;P&gt;I have an XML based source that has special characters defined. See below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;amp;   &amp;amp;amp;   
&amp;lt;   &amp;amp;lt;    
&amp;gt;   &amp;amp;gt;    
"   &amp;amp;quot;  
'   &amp;amp;apos;  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does anyone know how to use transforms.conf to convert these to the real characters in the left column at index time?&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jun 2014 19:03:55 GMT</pubDate>
    <dc:creator>jedatt01</dc:creator>
    <dc:date>2014-06-30T19:03:55Z</dc:date>
    <item>
      <title>Transforming special characters in XML</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforming-special-characters-in-XML/m-p/124891#M25745</link>
      <description>&lt;P&gt;I have an XML based source that has special characters defined. See below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;amp;   &amp;amp;amp;   
&amp;lt;   &amp;amp;lt;    
&amp;gt;   &amp;amp;gt;    
"   &amp;amp;quot;  
'   &amp;amp;apos;  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does anyone know how to use transforms.conf to convert these to the real characters in the left column at index time?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2014 19:03:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforming-special-characters-in-XML/m-p/124891#M25745</guid>
      <dc:creator>jedatt01</dc:creator>
      <dc:date>2014-06-30T19:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming special characters in XML</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforming-special-characters-in-XML/m-p/124892#M25746</link>
      <description>&lt;P&gt;Add this in your sourcetype definition (props.conf)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
...
..other configs..
...
SEDCMD-specialchars1 = s/specialcodeInxml/replacementcode/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You need to add one entry for each special character replacement.&lt;BR /&gt;
e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  for &amp;amp;
        SEDCMD-specialchars5 = s/&amp;amp;amp;/\&amp;amp;/g
  for others
        SEDCMD-specialchars3 = s/&amp;amp;quot;/"/g
        SEDCMD-specialchars4 = s/&amp;amp;apos;/'/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For more details see this documentation-&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.1/Data/Anonymizedatausingconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.1/Data/Anonymizedatausingconfigurationfiles&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;search for "Anonymize data through a sed script"&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2014 19:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforming-special-characters-in-XML/m-p/124892#M25746</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-30T19:34:24Z</dc:date>
    </item>
  </channel>
</rss>

