<?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: Removing Backslash in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Removing-Backslash/m-p/520657#M87993</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224298"&gt;@vpsmax&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;try this simple regex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SEDCMD-replace_backslash_1 = s/:\\\/:/g&lt;/LI-CODE&gt;&lt;P&gt;that you can test in a search like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval my_field="&amp;amp;dir+c:\ 443" | rex field=my_field mode=sed "s/:\\\/:/g"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 21 Sep 2020 15:44:15 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-09-21T15:44:15Z</dc:date>
    <item>
      <title>Removing Backslash</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-Backslash/m-p/520652#M87991</link>
      <description>&lt;P&gt;Good morning.&lt;/P&gt;&lt;P&gt;Trying to replace a "\" (backslash) from a string.&amp;nbsp; Below is my example ...&lt;/P&gt;&lt;P class="yiv8419425885MsoNormal"&gt;# Perform Global Replace for "&amp;amp;dir+c:\ 443"&lt;BR /&gt;SEDCMD-replace_backslash_1 = s/\&amp;amp;\w+\+\w\:\\\s443/&amp;amp;dir+c: 443/g&lt;/P&gt;&lt;P class="yiv8419425885MsoNormal"&gt;For some reason, the pattern match is not able to detect the backslash.&amp;nbsp; Are there any special considerations when trying to remove a backslash?&lt;/P&gt;&lt;P class="yiv8419425885MsoNormal"&gt;Regards,&lt;BR /&gt;Max&lt;/P&gt;&lt;P class="yiv8419425885MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 15:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-Backslash/m-p/520652#M87991</guid>
      <dc:creator>vpsmax</dc:creator>
      <dc:date>2020-09-21T15:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Backslash</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-Backslash/m-p/520657#M87993</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224298"&gt;@vpsmax&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;try this simple regex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SEDCMD-replace_backslash_1 = s/:\\\/:/g&lt;/LI-CODE&gt;&lt;P&gt;that you can test in a search like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval my_field="&amp;amp;dir+c:\ 443" | rex field=my_field mode=sed "s/:\\\/:/g"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 15:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-Backslash/m-p/520657#M87993</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-21T15:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Backslash</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-Backslash/m-p/520700#M87999</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; While the search works as expected, the SEDCMD command does not seem to be picking up.&amp;nbsp; The Indexers and the Heavy Forwarder have been restarted.&amp;nbsp; A new set of entries have been added using "oneshot".&amp;nbsp; Any suggestions on how to get the SEDCMD command to work properly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 23:45:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-Backslash/m-p/520700#M87999</guid>
      <dc:creator>vpsmax</dc:creator>
      <dc:date>2020-09-21T23:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Backslash</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-Backslash/m-p/520736#M88003</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224298"&gt;@vpsmax&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;props.conf and transforms.conf must be on Indexers or on Heavy Forwarders (when present) and to be sure you can put them in both servers (as you did, remember to restart Splunk).&lt;/P&gt;&lt;P&gt;If your regex doesn't run, check if the sourcetype where you inserted the SEDCMD is correct and try another easier regex :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SEDCMD-replace_backslash_1 = s/\\\//g&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 06:49:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-Backslash/m-p/520736#M88003</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-22T06:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Backslash</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-Backslash/m-p/521289#M88091</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;&lt;P&gt;Good morning. Thank you for your guidance on this. Strangely, we tried what you mentioned ...&lt;/P&gt;&lt;P&gt;SEDCMD-replace-backslash_1 = s/\\\//g&lt;/P&gt;&lt;P&gt;But it did not work. The TA which contains the props.conf and the sourcetype definition were installed on both the Indexers and the HF. Instead, we tried the following ...&lt;/P&gt;&lt;P&gt;SEDCMD-replace-backslash_1 = s/(\\\s)/ /g&lt;/P&gt;&lt;P&gt;And for some reason, this worked! I suppose there are some considerations when using SEDCMD.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Max&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 14:34:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-Backslash/m-p/521289#M88091</guid>
      <dc:creator>vpsmax</dc:creator>
      <dc:date>2020-09-24T14:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Backslash</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-Backslash/m-p/521303#M88093</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224298"&gt;@vpsmax&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: please accept the answer for the other people of Community and Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 15:09:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-Backslash/m-p/521303#M88093</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-24T15:09:28Z</dc:date>
    </item>
  </channel>
</rss>

