Open faxm0dem opened 4 years ago
Hi,
This is a nice idea. With dcache 6.2 we enable systemd and , as the result, all log files will go into journal. You can check the documentation here:
We have to check how to combine logback-journal with other systemd related work we are doing.
Hi,
Have you had time to check this ?
Cheers
Hi,
sorry for the late reply. As we use systemd by default, this is a nice addition. However, this will break the current tools. I would like to get a confirmation dcache admins that thay are happy with it. can you please start a discussion at user forum.?
Thanks!
How does this break the current tools ? It's just a supplementary jar file to add to the classpath
So, one comment on this from a site admin point of view. Our primary usecase would be for the billing logs, and there we already have several choices: text lines in files and sql database. A third option for structured logging into journald would be a useful addition. I assume this structured logging would also take care of proper escaping etc when exported as json events?
The other part is that I understand kofemann's reluctance to change the default logging format, since many sites have several different parsers for it for various purposes. But adding the software component so that sites could enable it in their custom logback configs would be a reasonable first step?
I'm not suggesting to change the default logging format, just enabling the new by shipping the jar that makes it possible
But adding the software component so that sites could enable it in their custom logback configs would be a reasonable first step?
Yes, definitely that's basically what I was asking for :-) just add the .jar
and so sites can configure their logback to log using journald
All our nodes now run journald and it would be great if you could add support for it to your classpath. We successfully tested https://github.com/gnieh/logback-journal and it provides the following benefits over the syslog appender we used previously:
Here's an example output of
journalctl -t dcache -o json
:This particular example is being achieved using the following logback appender config: