gtk has asked for the wisdom of the Perl Monks concerning the following question:
I wanted to find the card numbers in a logfiles and mask the card numbers. Can you please let me know what is the easiest way to do this?
Card Number format => 1234567890123456 and I want to mask the number like his one 123456******3456
The problem is to identify the number in the file because I cannot open the file because sometimes files are too large. The next problem is mask the card number from 7th digit to 12th digit.
The logfile how the crd number stored
Dec 10 14:00:00 AAA: ABC * 11111 * + CRD : 1234567890123456
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Find Credit Card Numbers and Mask only 6 digits in a logfile
by Marshall (Canon) on Apr 30, 2018 at 11:07 UTC | |
Re: Find Credit Card Numbers and Mask only 6 digits in a logfile
by marto (Cardinal) on Apr 30, 2018 at 10:55 UTC | |
by VinsWorldcom (Prior) on Apr 30, 2018 at 12:05 UTC | |
by gtk (Acolyte) on Apr 30, 2018 at 10:59 UTC | |
by marto (Cardinal) on Apr 30, 2018 at 11:07 UTC | |
by gtk (Acolyte) on Apr 30, 2018 at 13:16 UTC | |
Re: Find Credit Card Numbers and Mask only 6 digits in a logfile
by shmem (Chancellor) on Apr 30, 2018 at 10:59 UTC | |
Re: Find Credit Card Numbers and Mask only 6 digits in a logfile
by kcott (Archbishop) on May 01, 2018 at 09:58 UTC |