<?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: How to remove &amp;quot;\n&amp;quot; character from string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-quot-n-quot-character-from-string/m-p/603584#M210026</link>
    <description>&lt;P&gt;thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2022 12:12:30 GMT</pubDate>
    <dc:creator>guest_123</dc:creator>
    <dc:date>2022-06-28T12:12:30Z</dc:date>
    <item>
      <title>How to remove "\n" character from string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-quot-n-quot-character-from-string/m-p/603575#M210023</link>
      <description>&lt;P&gt;I have a serialized json string like below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"{\n \"ID\": \"da419500-f6b4-11ec-8b49-025041000001\",\n \"Name\": \"splunk\",\n \"message\": \"demo\",\n \"tracePoint\": \"START\",\n \"priority\": \"ERROR\",\n \"flowName\": \"demo1\",\n \"timestamp\": \"2022-06-27T16:33:17.175289Z\",\n \"content\": {\n \"payload\": {\n \"message\": \"Hello world!\"\n }\n }\n}"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to remove all the "\n" form this string&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"{ \"ID\": \"da419500-f6b4-11ec-8b49-025041000001\", \"Name\": \"splunk\", \"message\": \"demo\", \"tracePoint\": \"START\", \"priority\": \"ERROR\", \"flowName\": \"demo1\", \"timestamp\": \"2022-06-27T16:33:17.175289Z\", \"content\": { \"payload\": { \"message\": \"Hello world!\" } } }"&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I tried rex field=myField mode=sed "s/\\n/ /g"&amp;nbsp; and also replace function both seems to be not helping&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 11:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-quot-n-quot-character-from-string/m-p/603575#M210023</guid>
      <dc:creator>guest_123</dc:creator>
      <dc:date>2022-06-28T11:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove "\n" character from string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-quot-n-quot-character-from-string/m-p/603579#M210024</link>
      <description>&lt;P&gt;You should add one more \ to rex cmd like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex mode=sed field=myField "s/\\\n/ /g"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 28 Jun 2022 11:55:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-quot-n-quot-character-from-string/m-p/603579#M210024</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-06-28T11:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove "\n" character from string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-quot-n-quot-character-from-string/m-p/603584#M210026</link>
      <description>&lt;P&gt;thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 12:12:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-quot-n-quot-character-from-string/m-p/603584#M210026</guid>
      <dc:creator>guest_123</dc:creator>
      <dc:date>2022-06-28T12:12:30Z</dc:date>
    </item>
  </channel>
</rss>

