<?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 i just want to extract the number from the below sentance and replace with xxxx . Help me in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/i-just-want-to-extract-the-number-from-the-below-sentance-and/m-p/344039#M101918</link>
    <description>&lt;P&gt;the Information in service : ID R1-7857hi75 is duplicated&lt;/P&gt;

&lt;P&gt;i want to make it as &lt;BR /&gt;
the Information in service : ID R1-******* is duplicated&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2017 03:20:53 GMT</pubDate>
    <dc:creator>DataOrg</dc:creator>
    <dc:date>2017-12-13T03:20:53Z</dc:date>
    <item>
      <title>i just want to extract the number from the below sentance and replace with xxxx . Help me</title>
      <link>https://community.splunk.com/t5/Splunk-Search/i-just-want-to-extract-the-number-from-the-below-sentance-and/m-p/344039#M101918</link>
      <description>&lt;P&gt;the Information in service : ID R1-7857hi75 is duplicated&lt;/P&gt;

&lt;P&gt;i want to make it as &lt;BR /&gt;
the Information in service : ID R1-******* is duplicated&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 03:20:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/i-just-want-to-extract-the-number-from-the-below-sentance-and/m-p/344039#M101918</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2017-12-13T03:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: i just want to extract the number from the below sentance and replace with xxxx . Help me</title>
      <link>https://community.splunk.com/t5/Splunk-Search/i-just-want-to-extract-the-number-from-the-below-sentance-and/m-p/344040#M101919</link>
      <description>&lt;P&gt;Hi @premranjithj,&lt;/P&gt;

&lt;P&gt;If you want to anonymise during search time you use below query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt; your search&amp;gt; | rex mode=sed "s/(?m)(\-)(\w+)/\1xxx/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to anonymise value during index time, please add below config on props.conf in Indexer or Heavy Forwarder whichever comes first.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
SEDCMD-maskvalue = s/(?m)(\-)(\w+)/\1xxx/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Harshil&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 03:32:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/i-just-want-to-extract-the-number-from-the-below-sentance-and/m-p/344040#M101919</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-12-13T03:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: i just want to extract the number from the below sentance and replace with xxxx . Help me</title>
      <link>https://community.splunk.com/t5/Splunk-Search/i-just-want-to-extract-the-number-from-the-below-sentance-and/m-p/344041#M101920</link>
      <description>&lt;P&gt;@harsmarvania57. thanks its worked.&lt;BR /&gt;
 can you please explain me the expression. i just want to understand to form other expression&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 04:16:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/i-just-want-to-extract-the-number-from-the-below-sentance-and/m-p/344041#M101920</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2017-12-13T04:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: i just want to extract the number from the below sentance and replace with xxxx . Help me</title>
      <link>https://community.splunk.com/t5/Splunk-Search/i-just-want-to-extract-the-number-from-the-below-sentance-and/m-p/344042#M101921</link>
      <description>&lt;P&gt;I am using sed mode in rex so in expression format is &lt;CODE&gt;s/regexp/replacement/flags&lt;/CODE&gt;, in this format &lt;CODE&gt;s&lt;/CODE&gt; means &lt;CODE&gt;substitute&lt;/CODE&gt; then regex &lt;CODE&gt;(?m)(\-)(\w+)&lt;/CODE&gt; (This will find data in (?m)-&amp;gt;multiline with pattern - (-) in first capturing group (\w+) means word with any length in second capturing group) and replacement is &lt;CODE&gt;\1xxx&lt;/CODE&gt; (Which will replace 2nd capturing group with xxx) and flag is &lt;CODE&gt;g&lt;/CODE&gt; (Apply the replacement to all matches to the regexp, not just the first.)&lt;/P&gt;

&lt;P&gt;For more explanation and play with regex with your sample data please refer &lt;A href="https://regex101.com/r/HHefSs/1"&gt;https://regex101.com/r/HHefSs/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Please accept my answer and upvote it, as it worked for you.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 04:33:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/i-just-want-to-extract-the-number-from-the-below-sentance-and/m-p/344042#M101921</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-12-13T04:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: i just want to extract the number from the below sentance and replace with xxxx . Help me</title>
      <link>https://community.splunk.com/t5/Splunk-Search/i-just-want-to-extract-the-number-from-the-below-sentance-and/m-p/344043#M101922</link>
      <description>&lt;P&gt;@harsnarvania57. thanks much for making me to understand. its really good&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 04:40:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/i-just-want-to-extract-the-number-from-the-below-sentance-and/m-p/344043#M101922</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2017-12-13T04:40:26Z</dc:date>
    </item>
  </channel>
</rss>

