reverbrain / elliptics

Distributed storage for medium and large objects with streaming support
http://reverbrain.com/elliptics
GNU Lesser General Public License v3.0
497 stars 85 forks source link

Elliptics logs and log rotate #728

Closed 6ecuk closed 6 years ago

6ecuk commented 6 years ago

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

bioothod commented 6 years ago

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 6 years ago

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

agend commented 6 years ago

We are using option with syslog.

6ecuk commented 6 years ago

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

agend commented 6 years ago
"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 6 years ago

Thanks.