reverbrain/elliptics

Elliptics logs and log rotate

6ecuk opened this issue · 6 comments

6ecuk commented

Hi, seems have the same problem 3Hren/blackhole#58, how you win this issue ? And another question - any plans for update blackhole versions? Thanks.

Changing blackhole dependencies will break other applications which will become binary incompatible. Unfortunately we can not force everyone to rebuild their binaries just because we have changed the logger.

6ecuk commented

Okey, but how fix problem with log rotate ? Restart elliptics services every rotate - not best idea i think.

agend commented

We are using option with syslog.

6ecuk commented

Can you show log rotate config example. Or you mean options in elliptics config ?

agend commented
"logger": {
               "level": "error",
               "frontends": [
                       {
                               "formatter": {
                                       "type": "string",
                                       "pattern": "%(timestamp)s %(request_id)s/%(lwp)s/%(pid)s %(severity)s: %(message)s %(...L)s"
                               },
                               "sink": {
                                       "type": "syslog",
                                       "identity": "elliptics"
                               }
                       }
               ]
       }
6ecuk commented

Thanks.