<?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 double quotes and slashes  from the field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Remove-double-quotes-and-slashes-from-the-field/m-p/558644#M158706</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/207122"&gt;@Rukmani_Splunk&lt;/a&gt;&amp;nbsp; Can you try following, you can replace _raw with field name that you said.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search_goes_here&amp;gt;
| rex mode=sed field=_raw "s/message :\"(.*)\"/message :\1/g" 
| eval clean_text=replace(_raw, "\\\\", "")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Output would be in field called clean_text here,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;message :{"payement":"xxx", "account:" xxx"}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;An upvote would be appreciated and Accept solution if&amp;nbsp; this reply helps!&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jul 2021 06:48:13 GMT</pubDate>
    <dc:creator>venkatasri</dc:creator>
    <dc:date>2021-07-08T06:48:13Z</dc:date>
    <item>
      <title>Remove double quotes and slashes  from the field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-double-quotes-and-slashes-from-the-field/m-p/558555#M158669</link>
      <description>&lt;P&gt;i&amp;nbsp; am having field like this below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;message :"{"\payement":"xxx", "\account:" xxx"}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; want&amp;nbsp; the&amp;nbsp; first&amp;nbsp; and last&amp;nbsp; quote .. How to&amp;nbsp; remove that&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 13:19:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-double-quotes-and-slashes-from-the-field/m-p/558555#M158669</guid>
      <dc:creator>Rukmani_Splunk</dc:creator>
      <dc:date>2021-07-07T13:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Remove double quotes and slashes  from the field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-double-quotes-and-slashes-from-the-field/m-p/558644#M158706</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/207122"&gt;@Rukmani_Splunk&lt;/a&gt;&amp;nbsp; Can you try following, you can replace _raw with field name that you said.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search_goes_here&amp;gt;
| rex mode=sed field=_raw "s/message :\"(.*)\"/message :\1/g" 
| eval clean_text=replace(_raw, "\\\\", "")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Output would be in field called clean_text here,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;message :{"payement":"xxx", "account:" xxx"}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;An upvote would be appreciated and Accept solution if&amp;nbsp; this reply helps!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 06:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-double-quotes-and-slashes-from-the-field/m-p/558644#M158706</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-07-08T06:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Remove double quotes and slashes  from the field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-double-quotes-and-slashes-from-the-field/m-p/558651#M158708</link>
      <description>&lt;P&gt;Thank you&amp;nbsp; so&amp;nbsp; much&amp;nbsp; .. but&amp;nbsp; it didnt&amp;nbsp; help&amp;nbsp; may&amp;nbsp; be issue with&amp;nbsp; data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 07:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-double-quotes-and-slashes-from-the-field/m-p/558651#M158708</guid>
      <dc:creator>Rukmani_Splunk</dc:creator>
      <dc:date>2021-07-08T07:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Remove double quotes and slashes  from the field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-double-quotes-and-slashes-from-the-field/m-p/558654#M158710</link>
      <description>&lt;P&gt;Yes it works for your sample provided starts with message , you can tune regex to match with your data approach remains same..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 08:52:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-double-quotes-and-slashes-from-the-field/m-p/558654#M158710</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-07-08T08:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Remove double quotes and slashes  from the field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-double-quotes-and-slashes-from-the-field/m-p/558665#M158714</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex mode=sed field=_raw "s/message :\"\{(.*)\}\"/message :\{\1\}/g" &lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Jul 2021 11:00:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-double-quotes-and-slashes-from-the-field/m-p/558665#M158714</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-07-08T11:00:29Z</dc:date>
    </item>
  </channel>
</rss>

