Syslogger Docker Image
tutum查看中文加速指南
基于gliderlabs/logspout的镜像,针对syslog和Tutum进行优化,作为Docker容器日志路由器,用于收集并路由容器日志到指定位置。
3 次收藏下载次数: 0状态:社区镜像维护者:tutum仓库类型:镜像最近更新:10 年前
tutum/syslogger
Image based on gliderlabs/logspout optimized for syslog and Tutum
Usage
docker-compose run -d -e HOSTNAME=<YOUR-HOSTNAME> syslogger "<YOUR-URI>"
replacing <YOUR-HOSTNAME> with the name you want it to appear in your managment service and <YOUR-URI> with the URI you will like to send your logs to.
Example using Papertrail
docker-compose run -d -e HOSTNAME=<YOUR-HOSTNAME> syslogger "syslog://<YOUR-PAPERTRAIL-URI>"
replacing <YOUR-PAPERTRAIL-URI> with your own papertrail URI. An example of Papertrail URI can be logs.papertrailapp.com:55555.
Example using Loggly
docker-compose run -d -e HOSTNAME=<YOUR-HOSTNAME> syslogger "syslog://logs-01.loggly.com:514?structured_data=<YOUR-CUSTOMER-TOKEN>@41058"
replacing <YOUR-CUSTOMER-TOKEN> with the customer token that you can find on "Source Setup"->"Customer Tokens".
Notes
- Syslogger is a log router for Docker containers that runs inside Docker. It attaches to all containers on a host, then routes their logs wherever you want.
- Right now it can capture stdout and stderr.
- Syslogger will gather logs from all containers that are started without the -t option.
Ignoring specific containers
Syslogger can ignore specific containers by setting an enviroment variable in the container you want it to ignore.
docker run -d -e 'LOGSPOUT=ignore' <name-image>
tutum 命名空间的其他可用镜像:
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
docker pull tutum/syslogger:<标签>
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务