Skip to content

How to get opengrok indexer logs into syslog #3840

Answered by vladak
ohm314 asked this question in Q&A
Discussion options

You must be logged in to vote

Firstly, given the log4j stuff that is happening currently (#3837) I'd be very hesitant to switch the logging over from java.util.logging (JUL) to something else (even if it was a facade).

I assume you are interested in passing everything from either indexer or the web app to syslog, in particular to a remote syslog server. Not considering the Python based tools at the moment (for simplicity), these contain their own logging (e.g. opengrok-mirror).

So, first thing I'd look at is some logging handler that can be added to the list of handlers in logging.properties that support logging via syslog. https://stackoverflow.com/a/2312463/11582827 suggests to use a JUL to SLF4J bridge (SLF4JBridge…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ohm314
Comment options

Answer selected by ohm314
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants