[jitsi-dev] [jitsi/jitsi-videobridge] please add logrotate file or template (#217)


#1

At the moment jvb.log increases infinitely, unless the videobridge is restarted. Please add a logrotate definition as a template or, even better include it into the postinst of the packaging.

An example content could be:

/var/log/jitsi/jvb.log {
  copytruncate
  daily
  rotate 7
  compress
  missingok
  create 640 jvb jitsi
}
···

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/issues/217


#2

This will not work, as long as you rotate the logs you will lose the logs as log new log file will stay with size zero. The best approach for the moment is to use syslog. Otherwise the way logging is done currently needs to be changed, the init script starting the process, any patches are welcome.

···

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/issues/217#issuecomment-209939843


#3

I see, I've changed the title accordingly

···

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/issues/217#issuecomment-209963287


#4

I'm using the following logrotate config and it works:
`/var/log/jitsi/jicofo.log {
        daily
        missingok
        rotate 7
        compress
        delaycompress
        notifempty
        copytruncate
        su jicofo jitsi
}

/var/log/jitsi/jvb.log {
        daily
        missingok
        rotate 7
        compress
        delaycompress
        notifempty
        copytruncate
        su jvb jitsi
}
`
copytruncate does the magic, when the logging process does not close and reopen it's file handles.

···

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/issues/217#issuecomment-210005328


#5

@DanScharon does this solves the problem for you? @photoninger thanks for the update.

···

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/issues/217#issuecomment-210007095


#6

@damencho yes, this definitely solves it. Would be nice to have it as template within the debian packaging @photoninger thanks for the quick hint!

···

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/issues/217#issuecomment-210017903


#7

Closed #217.

···

--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/issues/217#event-755267286


#8

logrotate has been added to latest versions of jicofo and jvb.

···

--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/issues/217#issuecomment-239726204