andywer / ideabox

Place to collect techy ideas and get feedback.
1 stars 1 forks source link

Swarm logs service #22

Open andywer opened 6 years ago

andywer commented 6 years ago

Logs, stats & charts for docker containers & swarm. Super easy to set up in 5 mins.

Build a simple log collection service with a simple, but convenient UI. Make forwarding logs from a docker swarm super easy by providing an image similar to logzio-docker.

Features

Nice to have

andywer commented 5 years ago

Basic architecture

Probably not even necessary

Instead:

Log server

andywer commented 5 years ago

Storing logs

In postgres. Use the default jsonb_ops when indexing the additional message fields with a GIN index. See:

Stats Aggregation

Edit: Just use influxdb.

See https://docs.influxdata.com/influxdb/v1.6/guides/downsampling_and_retention/.

Not an option for logs, though, due to lack of free text search.