i want search search level field extraction command to replace all numeric value as astriek
Name = Dell vostro 2012 laptop wireless
Name = HP latitude laptop 20161 home station
Name is the field followd by value
I want results as
Name = Dell vostro **** laptop wireless
Name = HP latitude laptop **** home station
If you want to get rid of numbers, you can use sed to replace them with nothing (also removes leading space):
| rex field=Name mode=sed "s/\s\d+//g"
You said replace with asterisk, I believe, which would be:
| rex field=Name mode=sed "s/\s\d+/\*/g"
View solution in original post