<?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 regex to replace numeric value as astreik in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-to-replace-numeric-value-as-astreik/m-p/483146#M135303</link>
    <description>&lt;P&gt;i want  search  search level field extraction command to replace all numeric value as astriek &lt;/P&gt;

&lt;P&gt;Name = Dell vostro 2012 laptop wireless&lt;BR /&gt;
Name = HP latitude laptop 20161 home station &lt;BR /&gt;
Name is the field followd by value&lt;/P&gt;

&lt;P&gt;I want results as&lt;BR /&gt;
Name = Dell vostro **** laptop wireless&lt;BR /&gt;
Name = HP latitude laptop **** home station &lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 14:19:54 GMT</pubDate>
    <dc:creator>DataOrg</dc:creator>
    <dc:date>2019-09-17T14:19:54Z</dc:date>
    <item>
      <title>regex to replace numeric value as astreik</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-replace-numeric-value-as-astreik/m-p/483146#M135303</link>
      <description>&lt;P&gt;i want  search  search level field extraction command to replace all numeric value as astriek &lt;/P&gt;

&lt;P&gt;Name = Dell vostro 2012 laptop wireless&lt;BR /&gt;
Name = HP latitude laptop 20161 home station &lt;BR /&gt;
Name is the field followd by value&lt;/P&gt;

&lt;P&gt;I want results as&lt;BR /&gt;
Name = Dell vostro **** laptop wireless&lt;BR /&gt;
Name = HP latitude laptop **** home station &lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 14:19:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-replace-numeric-value-as-astreik/m-p/483146#M135303</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2019-09-17T14:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: regex to replace numeric value as astreik</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-replace-numeric-value-as-astreik/m-p/483147#M135304</link>
      <description>&lt;P&gt;If you want to get rid of numbers, you can use sed to replace them with nothing (also removes leading space):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search)
| rex field=Name mode=sed "s/\s\d+//g" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You said replace with asterisk, I believe, which would be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search)
| rex field=Name mode=sed "s/\s\d+/\*/g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Sep 2019 14:54:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-replace-numeric-value-as-astreik/m-p/483147#M135304</guid>
      <dc:creator>jpolvino</dc:creator>
      <dc:date>2019-09-17T14:54:51Z</dc:date>
    </item>
  </channel>
</rss>

