Nomad: Syslog based log forwarding in Nomad client

Created on 15 Jul 2016  路  5Comments  路  Source: hashicorp/nomad

Nomad should forward stdout and stderr log messages to an operator specified syslog endpoint. The syslog endpoint has to be specified in the Nomad client configuration file.

themclient typenhancement

Most helpful comment

If possible, this should support adding the container name as a syslog tag. Otherwise it will be difficult to figure out which container the logs are coming from.

All 5 comments

If possible, this should support adding the container name as a syslog tag. Otherwise it will be difficult to figure out which container the logs are coming from.

+1

+1

We still need this guys +1

https://github.com/adragoset/nomad_follower

Maybe a temporary solution for log forwarding until this is implemented. When run as a system task on every worker it will tail all allocations on the worker and write them to a single file with some metadata about the task specifically the allocation id and any service names defined in the service stanza of the task. If run in a task group with a log shipper of the operators choice the aggregate file can be shared and subsequently watched by the log shipper through the shared alloc folder. This allows nomad to still manage the logs for allocation tasks and prevents the operator from needing to run a log shipper in every task group.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jrasell picture jrasell  路  3Comments

bdclark picture bdclark  路  3Comments

funkytaco picture funkytaco  路  3Comments

Gerrrr picture Gerrrr  路  3Comments

jippi picture jippi  路  3Comments