You should use an interpreted Scriptlanguage instead of a Programming language for a simple text crawling task
Perl, JavaScript or Python is the right direction there
What is the best way to check multiple log files for sensitive data?
eg. password in text format, in encrypted format, account informations,addresses,ip addresses, phone numbers, email contents etc..?
I thought about writing a c++ or java program which intelligently checks all the file and matches all the pattern, then write the found data to output?
You should use an interpreted Scriptlanguage instead of a Programming language for a simple text crawling task
Perl, JavaScript or Python is the right direction there
Gill Bates (04-01-2019),Rmzn0 (03-29-2019)
As MikeRohsoft said, you are better off using Python (best one for this, imo). Place all log files in folder > write script that checks for a certain format (example: SSN are usually XXX-XX-XXXX) or keywords (ID, phone, SSN, etc.)in that destination.
If you are trying to check files from a server and want to work directly with the server, make sure you input the login credentials in the script. Keep in mind that doing it directly from the server will use the server's resources, and speed will depend on that, so I would just export them to folder on my Desktop (Virtual Machine or physical computer).
Rmzn0 (04-02-2019)