We have processes that are producing logs using log4j, and some of the log entries are supposed to be loaded in a database for analysis and reporting (right now everything is going to files). The problem is that some of those processes don't have access to the database. So the idea is that every process is producing a file, which is then sent to/read by another process who has access to the DB.
The preferred format for this file is a standard log4j text format, so that the same file can be used both by the process that loads it in the DB and by real people for reading it. So the question is: is there an existing log file parser (ideally a java library)? We don't want to invest time to write a parser.
Another solution would be to generate two files, one for reading by humans, and the other one with, for instance, serialized log4j logging event that could be easily deserialized, but for now my management is not buying this...
There may also be other solutions that I'm not seeing, so any suggestion is welcomed