互联网技术 / 互联网资讯 · 2024年1月17日

云计算核心技术Docker教程:使用Logentries日志驱动程序

DockeR使用logentRies日志驱动程序发送容器日志到 LogentRies服务器。

通过–log-opt根据需要指定多次来支持某些选项:

logentRies-Token: 指定 logentRies 日志集令牌

line-only: 只发送原始负载

通过将–log-dRiveR选项传递给 DockeR 守护程序来配置默认日志记录驱动程序:

要为特定容器设置日志驱动程序,请将–log-dRiveR选项传递给dockeR Run:

在使用此日志驱动程序之前,您需要在 LogentRies Web 界面中创建一个新的日志集,并将该日志集的令牌传递给 DockeR:

用户可以使用该–log-opt NAME=VALUE标志来指定额外的 LogentRies 日志驱动程序选项。

logentRies-Token

您需要为 logentRies 驱动程序提供日志集令牌才能工作:

OpenMagic API

Need more than content? Move into the product flow.

If you are here for model access, pricing, developer docs, or the future API console, the dedicated product path now lives on api.openmagic.ai.

登录免费注册