How do I redirect Weblogic logging to database?

Is there a way to send or redirect Weblogic (or Fusion Middleware) logging output to a database, without having to write a custom application? All the documentation I’ve read seem to deal exclusively with files.

Answer

Weblogic is not actually my field, but according to Oracle’s documentation, you should be able to send WLS logs to syslog using Log4j Logger, from where it is again possible to forward them to MySQL (and some other) databases.

See here for rsyslog instructions and here for syslog-ng.

This syslog-approach has its benefits, since it is rather trivial to send syslogs from several servers to one central repository and then store them to a database there. Additionally there are front ends available (this to promote one I have used) to ease up analysing.

However this solution probably will not qualify as “without having to write a custom application“. Perhaps someone else has better ideas.

Attribution
Source : Link , Question Author : Giacomo Lacava , Answer Author : grassroot

Leave a Comment