<?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 After using an SED command in props.conf, how come our query with the replace command is no longer working? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/After-using-an-SED-command-in-props-conf-how-come-our-query-with/m-p/436455#M76142</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have one of the field in Cyberark which has a special character. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Retrieve [File
Monitor [FW] end
Monitor [FW] start
Monitor [DR] end
Monitor DR] start
Open File
Set Password
Logon
Logoff
Monitor Backup] end
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;SED Command in props.conf --&amp;gt; SEDCMD-cef_name = s/[][]/ /g&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I have used SED command in props to replace the special characters, but the client is not happy because we are altering the real data and its syntax. Then, I have reverted the change and tried using the replace command, but for some reason, my replace command is not working.&lt;/P&gt;

&lt;P&gt;replace(cef_name, "[ ]", "")&lt;/P&gt;</description>
    <pubDate>Thu, 13 Dec 2018 15:05:39 GMT</pubDate>
    <dc:creator>cyber_castle</dc:creator>
    <dc:date>2018-12-13T15:05:39Z</dc:date>
    <item>
      <title>After using an SED command in props.conf, how come our query with the replace command is no longer working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/After-using-an-SED-command-in-props-conf-how-come-our-query-with/m-p/436455#M76142</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have one of the field in Cyberark which has a special character. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Retrieve [File
Monitor [FW] end
Monitor [FW] start
Monitor [DR] end
Monitor DR] start
Open File
Set Password
Logon
Logoff
Monitor Backup] end
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;SED Command in props.conf --&amp;gt; SEDCMD-cef_name = s/[][]/ /g&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I have used SED command in props to replace the special characters, but the client is not happy because we are altering the real data and its syntax. Then, I have reverted the change and tried using the replace command, but for some reason, my replace command is not working.&lt;/P&gt;

&lt;P&gt;replace(cef_name, "[ ]", "")&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 15:05:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/After-using-an-SED-command-in-props-conf-how-come-our-query-with/m-p/436455#M76142</guid>
      <dc:creator>cyber_castle</dc:creator>
      <dc:date>2018-12-13T15:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: After using an SED command in props.conf, how come our query with the replace command is no longer working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/After-using-an-SED-command-in-props-conf-how-come-our-query-with/m-p/436456#M76143</link>
      <description>&lt;P&gt;Hello @cyber_castle,&lt;/P&gt;

&lt;P&gt;If I understand correctly, you want to remove special characters while running a search.&lt;/P&gt;

&lt;P&gt;Note that there is a &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.1/SearchReference/Replace"&gt;replace command&lt;/A&gt; as well as a &lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/TextFunctions"&gt;replace eval function&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;I think you are better off here with the eval function:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval cef_name=replace(cef_name,"[\[\]]"," ")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Dec 2018 15:22:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/After-using-an-SED-command-in-props-conf-how-come-our-query-with/m-p/436456#M76143</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2018-12-13T15:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: After using an SED command in props.conf, how come our query with the replace command is no longer working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/After-using-an-SED-command-in-props-conf-how-come-our-query-with/m-p/436457#M76144</link>
      <description>&lt;P&gt;Thanks for your answer. It worked.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 16:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/After-using-an-SED-command-in-props-conf-how-come-our-query-with/m-p/436457#M76144</guid>
      <dc:creator>cyber_castle</dc:creator>
      <dc:date>2018-12-13T16:38:02Z</dc:date>
    </item>
  </channel>
</rss>

