<?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 SEDCMD: to filter the character between the user in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/SEDCMD-to-filter-the-character-between-the-user/m-p/350238#M161279</link>
    <description>&lt;P&gt;Curently our proxy logs with user having special characters inbetween.&lt;BR /&gt;
ref: DC=local/bob\, tom&lt;/P&gt;

&lt;P&gt;I have created a props.conf with&lt;BR /&gt;
SEDCMD-alter_user= s/\\,//g&lt;BR /&gt;
with which i am able to get the desired value but its too generic.&lt;BR /&gt;
ref: DC=local/bob tom&lt;BR /&gt;
Kindly assist me with the SEDCMD &lt;BR /&gt;
SEDCMD-alter_user= s/"local/"\\,//g&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:50:30 GMT</pubDate>
    <dc:creator>neelamsantosh</dc:creator>
    <dc:date>2020-09-29T13:50:30Z</dc:date>
    <item>
      <title>SEDCMD: to filter the character between the user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SEDCMD-to-filter-the-character-between-the-user/m-p/350238#M161279</link>
      <description>&lt;P&gt;Curently our proxy logs with user having special characters inbetween.&lt;BR /&gt;
ref: DC=local/bob\, tom&lt;/P&gt;

&lt;P&gt;I have created a props.conf with&lt;BR /&gt;
SEDCMD-alter_user= s/\\,//g&lt;BR /&gt;
with which i am able to get the desired value but its too generic.&lt;BR /&gt;
ref: DC=local/bob tom&lt;BR /&gt;
Kindly assist me with the SEDCMD &lt;BR /&gt;
SEDCMD-alter_user= s/"local/"\\,//g&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:50:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SEDCMD-to-filter-the-character-between-the-user/m-p/350238#M161279</guid>
      <dc:creator>neelamsantosh</dc:creator>
      <dc:date>2020-09-29T13:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD: to filter the character between the user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SEDCMD-to-filter-the-character-between-the-user/m-p/350239#M161280</link>
      <description>&lt;P&gt;This should be closer to what you need:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-alter_user= s/local\/(\w+)\\,/\1/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You may need to tweak it for the characters that can be in your username (e.g. [-a-zA-Z0-9_]+ instead of \w+). You must escape the slash, not use double quotes the way you did, and pass the username through (\1)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;I have edited this answer.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 13:39:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SEDCMD-to-filter-the-character-between-the-user/m-p/350239#M161280</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2017-04-26T13:39:12Z</dc:date>
    </item>
  </channel>
</rss>

