Hello,
We have a perl script that ingests files from a remote server into a database based on their mtime and puts them into their respective location. This is due to not having standard naming conventions across log files. Problem is, that isn't always effective as mtimes can change. Is there a way in perl to head the file and tail the file to check the date in the first field and ingest it if it matches accordingly? The first column date format looks like 04/Jun/2017:11:04:55
say I need the perl script to match files for the last 6 days, it looks through the logs and checks the date, then ingests them?