Comments (10)
https://github.com/just-containers/nginx-loadbalancer as an example to configure logging (the s6-overlay 'way' I guess)
yes :-)
But I have some questions. How do I get this to hit stdout, rather than, or concurrently hitting the file as it does now? Also, what is the benefit to setting up the logging as per the nginx-loadbalancer example? I must admit, it was a lot of work to get the logging setup.
Take it with a grain of salt, it's not finished yet! This is another interesting reading about how @skarnet understands logging: http://skarnet.org/software/s6/s6-log.html (section 'why another logging...).
But being short, I want to achieve the following:
- don't mix different kind of logs into the same place. Because I want to forward them tagged to another centralised log management server. for example, i use different type of logstash configurations for
access
anderror
logs. - i want to have log rotator as a first citizen inside the container,
s6-log
already provides that (although it's not used in thenginx-loadbalancer
yet...) - just log to stdout supervision level logs, startup and finish.
from s6-overlay.
@glerchundi, thanks for getting back to me. So there is no real way to achieve it at this point? Is there something in https://github.com/just-containers/nginx-loadbalancer/blob/master/rootfs/etc/services.d/nginx-access-log/run that I can piggy back to output to stdout too (using s6-echo
or something)?
from s6-overlay.
On Thu, Apr 23, 2015 at 7:52 AM, Gorka Lerchundi Osa <
[email protected]> wrote:
- just log to stdout supervision level logs, startup and finish.
i want to have log rotator as a first citizen inside the container, s6-log
already provides that (although it's not implemented yet...)
It would also be nice to see a log rotated docker logging plugin.
from s6-overlay.
@glerchundi, thanks for getting back to me. So there is no real way to achieve it at this point? Is there something in https://github.com/just-containers/nginx-loadbalancer/blob/master/rootfs/etc/services.d/nginx-access-log/run that I can piggy back to output to stdout too (using s6-echo or something)?
although I would encourage you not to do that, it can be achieved by:
- remove
/etc/cont-init.d/00-initialize-log-fds
- remove
/etc/services.d/nginx-access-log
&/etc/services.d/nginx-error-log
- change these lines, and point to
/dev/stdout
done.
from s6-overlay.
It would also be nice to see a log rotated docker logging plugin.
yes it would be nice but that probably doesn't solve merging/syslog problem, that's why I really like having switching (through fifos and s6-fdholderd
) & logrotation mechanisms inside the container.
from s6-overlay.
@glerchundi I would love to hear about your logstash setup - do you keep logs at a volume, and have another container accessing the logs?
from s6-overlay.
That's it.
from s6-overlay.
@jprjr I didn't make it a reality yet but this is my idea:
- CoreOS
- Each machine running CoreOS will have a persistent storage in which containers will place its logrotated logs.
- Use kubernetes to make packages of containers using pods like:
- nginx-loadbalancer
- logstash-forwarder
So that every container would have a logstash-forwarder alongside it.
from s6-overlay.
@smebberson could I close this?
from s6-overlay.
Yep. Thanks for getting back to me on it too. I haven't tried it yet, but will shortly.
Sent from my iPhone
On 24 Apr 2015, at 8:13 pm, Gorka Lerchundi Osa [email protected] wrote:
@smebberson could I close this?
—
Reply to this email directly or view it on GitHub.
from s6-overlay.
Related Issues (20)
- systemd notify service conversion exmaple HOT 4
- s6-notifyoncheck: fatal: s6-supervise not running. HOT 3
- Installing S6 on official php-fpm container shows no log output from S6 HOT 5
- Issue with s6-overlay in Cattr project when deployed on Kubernetes HOT 6
- `UID not set` error HOT 10
- Question: pass args to the underlying service HOT 6
- s6-overlay v3 only sends SIGTERM to `/etc/services.d` after `S6_SERVICES_GRACETIME` HOT 8
- Setting S6_READ_ONLY_ROOT does not copy `/etc` to `/run/s6/etc` HOT 3
- Service is started, but reported as "normally down", seemingly by default HOT 11
- 3.1.6.1 hangs at the very end of shutdown for more than a minute HOT 3
- In some rare occasions s6-overlay hangs at shutdown for undefined amount of time HOT 4
- Using s6-overlay with ECS Exec HOT 8
- How to create something similar like cont-init if this one is deprecated ? HOT 3
- Best practice for redirecting output from app1 to app2 HOT 5
- Problem using S6_STAGE2_HOOK to run shell script HOT 2
- s6-linux-init: warning: parent wrote to fd 3! HOT 9
- How to read ENV variables from a file for the main process (defined in CMD) HOT 4
- Shutdown container during s6-rc startup leads to deadlock HOT 3
- finish script does not receive system.exit code but 0 HOT 33
- Cannot make Log to stdout work with s6-overlay 3.1.6.2 (no bug, just looking for some guidance/help). HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s6-overlay.