I want to parse a log file which is in /X
on a Linux server.
Below is the scenario :
- Log files are pushed into
/X
at a regular interval of 5 minutes or when a log file size becomes 5MB - Now we are trying to make a parser which parses the latest created log file and gets the required information
How can I retrieve the file name of the most recent log file?