<?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 replace backslash by double backslash using eval in search and props.conf in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-replace-backslash-by-double-backslash-using-eval-in/m-p/510587#M2761</link>
    <description>&lt;P&gt;In Eval, We can use string format function (replace) to replace "\" by two "\\".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, We need to escape "\" two times,&lt;/P&gt;&lt;P&gt;One of the way to replace it,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;props.conf&amp;nbsp;&lt;/P&gt;&lt;P&gt;EVAL-new_path =&amp;nbsp;&lt;SPAN&gt;replace(path ,&lt;/SPAN&gt;&lt;SPAN&gt;"(\\\\)"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"\\\\\1"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in Search Query:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| eval new_path =&amp;nbsp;replace(path ,"(\\\\)","\\\\\1")&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jul 2020 06:11:50 GMT</pubDate>
    <dc:creator>manan_amin</dc:creator>
    <dc:date>2020-07-23T06:11:50Z</dc:date>
    <item>
      <title>How to replace backslash by double backslash using eval in search and props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-replace-backslash-by-double-backslash-using-eval-in/m-p/510585#M2760</link>
      <description>&lt;P&gt;&lt;SPAN&gt;for example :&amp;nbsp; C:\user\process&amp;nbsp; --&amp;gt;&amp;nbsp; C:\\user\\process&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 06:04:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-replace-backslash-by-double-backslash-using-eval-in/m-p/510585#M2760</guid>
      <dc:creator>jay</dc:creator>
      <dc:date>2020-07-23T06:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace backslash by double backslash using eval in search and props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-replace-backslash-by-double-backslash-using-eval-in/m-p/510587#M2761</link>
      <description>&lt;P&gt;In Eval, We can use string format function (replace) to replace "\" by two "\\".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, We need to escape "\" two times,&lt;/P&gt;&lt;P&gt;One of the way to replace it,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;props.conf&amp;nbsp;&lt;/P&gt;&lt;P&gt;EVAL-new_path =&amp;nbsp;&lt;SPAN&gt;replace(path ,&lt;/SPAN&gt;&lt;SPAN&gt;"(\\\\)"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"\\\\\1"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in Search Query:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| eval new_path =&amp;nbsp;replace(path ,"(\\\\)","\\\\\1")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 06:11:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-replace-backslash-by-double-backslash-using-eval-in/m-p/510587#M2761</guid>
      <dc:creator>manan_amin</dc:creator>
      <dc:date>2020-07-23T06:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace backslash by double backslash using eval in search and props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-replace-backslash-by-double-backslash-using-eval-in/m-p/702171#M20541</link>
      <description>&lt;P&gt;why 4 backslashes?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 12:47:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-replace-backslash-by-double-backslash-using-eval-in/m-p/702171#M20541</guid>
      <dc:creator>highsplunker</dc:creator>
      <dc:date>2024-10-17T12:47:49Z</dc:date>
    </item>
  </channel>
</rss>

