syslogger

Syslogger Docker Image

基于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>

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 syslogger 镜像标签

docker pull docker.xuanyuan.run/tutum/syslogger:<标签>

DockerHub 原生拉取命令

docker pull tutum/syslogger:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告