in reply to log file in perl.

Echoing the first responder ... I personally would write the program so that it validated the log-file and loaded it into the database, instead of preparing an output file and then relying upon a third-party program (even a vendor-supplied one) to do it.   There’s just too much uncertainty in doing it the other way:   “the programs might all run to completion, but how do you know that the process actually worked?”