Log files - Error Documentation (Automated process)

Job ID: 35672748

Budget: $10 – $30 USD

We have multiple logfiles(text files), where we need to look for keywords(Connection failed, rejecting new connection, connection refused, access denied, denied, failed) then we need to copy the text line which has these key words along with line number. This should be in Java, we are looking to automate the process.
Attaching sample out put file in word document (this was done manually) and also attaching the log files(we have around 15 logfiles, attaching 3 logfiles, few logfiles size is more than 1 GB)