您现在的位置是:热点 >>正文
云计算核心技术Docker教程:Docker使用Fluentd 日志驱动程序
热点6477850人已围观
简介...
该fluentd日志记录驱动程序发送容器日志到 Fluentd集电极结构化日志数据。然后,用户可以使用Fluentd的各种输出插件中的任何一个将这些日志写入各个目的地。
除了日志消息本身之外,f云计luentd日志驱动程序还会在结构化日志消息中发送以下元数据:
选项 描述
c算核ontainer_id 完整的 64 个字符的容器 ID。
container_name 启动时的容器名称。如果您使用docker rename重命心技名容器,则新名称不会反映在日记帐分录中。
source stdout 或者 stderr
log &nbs术Dp; 容器日志
该docker logs命令不可用于此日志记录驱动程序。
用法
通过-oc-log-opt根据需要指定多次来支持某些选项:
fluentd-address: 指定一个套接字地址以连接到 Fluentd 守护进程,例如fluentdhost:24224或unix:///path/keto/fluentd.sock
tag:指定fluentd消息的标签,其解释一些标记,离{{.ID}},{{.FullID}}或{{.r教Name}} docker.{{.ID}}
要将fluentd驱动程序用作默认日志记录驱动程序,请将log-driver 和log-opt键设置为daemon.json文件中的适当程:值,该文件位于/etc/docker/Linux 主机或 C:\ProgramData\docker\config\daemon.jsonWindows 服务器上。有关 +configuring DockeDor using 的更多信息daemon.json,请参阅 + daemon.json。
以下示例将日志驱动程序fluentd设置为并设置 fluentd-address选项。
{
"log-driver"ck: "fluentd",
"log-opts": {
"fluentd-address": "fluentdhost:24224"
}
}
重新启动 Docker 以使更改生效。
要为特定容器设置日志驱er动程序,请将--log-driver选项传递 给docker run:
docker run --log-driver=fluentd ...
在使用这个日志驱动程序之前,启动一个 Fluentd 守护进程。l使用ocalhost:24224默认情况下,日志驱动程序连接到此守护程序。使用该 fluentd-address选项连接到不同的地址。
docker run --log-driver=fluentd --log-oFlpt fluentd-address=fluentdhost:24224
如果容器无法连接到 Fluentd 守护程序,除非使用该fluentd-async选项,否则容器会立即停止。
Tags:
相关文章
微软推出全新AI形象 Mico,Clippy 回归“变身”人工智能好友
热点在周四举行的 Copilot 秋季发布会上,微软正式推出了一款全新人工智能形象—— Mico ,这是该公司在消费者端推进 AI 拟人化的重要一步。Mico 的名字源自 “Microsoft Copil...
【热点】
阅读更多用“大白话”精准搜图,OpenAI的CLIP惊艳了所有人
热点本文经AI新媒体量子位(公众号ID:QbitAI)授权转载,转载请联系出处。 别再怕图片搜索结果牛头不对马嘴了,你可以试试这个精准图片搜索,来自OpenAI最新的技术CLIP。 只需一句“大白话”描述...
【热点】
阅读更多标签: OpenAI 布拉德·莱特卡普 凯特·罗奇 菲吉·西莫
热点云梦级4月4日云梦级消息,据彭博社报道,OpenAI 首席运营官布拉德 · 莱特卡普职位发生调整,首席营销官凯特 · 罗奇和 AGI 开发负责人菲吉 · 西莫因健康原因将暂时离岗。在公司推进 IPO...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.kyuhoshi.com/?s=歌外推【tg:seogoogle987】,xBO
- https://www.ncetm.org.uk/search?action=CHECK&q=歌外推【tg:seogoogle987】,Gej
- https://www.ushmm.org/search/results/?ID=8s0587Oi8UTv74zPPM4fuhwjNpe2hsEE&q=歌外推【tg:seogoogle987】,tAD
- https://www.merchbar.com/search?q=歌外推【tg:seogoogle987】,RpN
- https://www.paxnet.co.kr/search/jongmok?kwd=歌外推【tg:seogoogle987】6gM
- https://www.silentiumpc.com/en/search/歌外推【tg:seogoogle987】,2lM
- https://www.parriscues.com/catalogsearch/result/?q=歌外推【tg:seogoogle987】,6mY
- https://www.seforall.org/search?keywords=歌外推【tg:seogoogle987】,oSA
- https://www.teacherspayteachers.com/Browse/Price-Range/Free/Search:歌外推【tg:seogoogle987】,4rj
- https://www.oprny.com/search.php?search_query=歌外推【tg:seogoogle987】,jK1
- https://www.wikiart.org/pt/Search/歌外推【tg:seogoogle987】,j45
- https://www.pickett.co.uk/collections/vendors?q=歌外推【tg:seogoogle987】,0rM
- https://www.unclefossil.com/search/歌外推【tg:seogoogle987】,NPa
- https://www.shacknews.com/editorial-search?q=歌外推【tg:seogoogle987】,uyr
- https://www.swecobelgium.be/?page=9&s=歌外推【tg:seogoogle987】,PBC
- https://yokohama-oht.com/?action=CHECK&s=歌外推【tg:seogoogle987】,Xgw
- https://www.udc.co.uk/index.php?route=product/search&sort=p.price&order=DESC&tag=歌外推【tg:seogoogle987】,EvZ
- https://www.wuv.edu/?s=歌外推【tg:seogoogle987】,tb8
- https://www.sportbiketracktime.com/index.php?route=product/search&tag=歌外推【tg:seogoogle987】,06E
- https://www.samen-maier.at/search/歌外推【tg:seogoogle987】,vRk
- https://www.yidian51.com/taobao/歌外推【tg:seogoogle987】,L7r
- https://www.ussalabama.com/?action=CHECK&s=歌外推【tg:seogoogle987】,r2F
- https://www.otakuninjahero.com/en/search/歌外推【tg:seogoogle987】,s6C
- https://www.signingsavvy.com/sentence/歌外推【tg:seogoogle987】,EGe
- https://www.maigoo.com/search/?block=&q=歌外推【tg:seogoogle987】,FsL
- https://www.wilsonart.com/catalogsearch/result/?action=CHECK&q=歌外推【tg:seogoogle987】,vOM
- https://www.vet-direct.com/search?cat=72&term=歌外推【tg:seogoogle987】,TrV
- https://www.schenckprocess.com/search?q=歌外推【tg:seogoogle987】,tu7
- https://www.jusoen.com/addreng.asp?p1=歌外推【tg:seogoogle987】XGa
- https://www.urmc.rochester.edu/news/search?q=歌外推【tg:seogoogle987】,820
- https://www.universal-music.co.jp/?ID=1sIcckCTeBS8FjzCshAW9w53s8gr691o&s=歌外推【tg:seogoogle987】,kWa
- https://www.writingforward.com/?action=SEARCH&s=歌外推【tg:seogoogle987】,HcG
- https://www.terramania.nl/catalogsearch/result/index/?q=歌外推【tg:seogoogle987】,rgf
- https://www.nissin.com/jp/search/?cat=105&q=歌外推【tg:seogoogle987】,BX2
- https://www.tombow.com/en/search/歌外推【tg:seogoogle987】,FaP
- https://www.whiterock2008.com.tw/search?q=歌外推【tg:seogoogle987】,sUF
- https://www.kingston.gov.uk/site-search/results/?q=歌外推【tg:seogoogle987】,DAx
- https://www.spicebar.de/catalogsearch/result/?q=歌外推【tg:seogoogle987】,WnS
- https://www.takachi-enclosure.com/search?eqYB=gnI31Ou&text=歌外推【tg:seogoogle987】,t9T
- https://www.zutari.com/?s=歌外推【tg:seogoogle987】,CG9
- https://www.krisinformation.se/en/search?q=歌外推【tg:seogoogle987】,cQl
- https://www.realsporting.com/buscador?buscar=歌外推【tg:seogoogle987】,fFy
- https://www.usslexington.com/?action=QUERY&s=歌外推【tg:seogoogle987】,V86
- https://www.nyif.com/catalogsearch/result/index/?f=sarbanesoxleyU&index=me_cms_pe&lit=20&mode=list&p=1&q=歌外推【tg:seogoogle987】,uGu
- https://www.oikos-tecnics.com/?s=歌外推【tg:seogoogle987】,Onp
- https://xehay.vn/tim-kiem/=歌外推【tg:seogoogle987】,762
- https://www.springfieldlibrary.org/library/?s=歌外推【tg:seogoogle987】,se6
- https://www.lyrics.com/lyrics/歌外推【tg:seogoogle987】,4Om
- https://www.nbm.org/?action=QUERY&s=歌外推【tg:seogoogle987】,A7W
- https://www.tarleton.edu/news/search/歌外推【tg:seogoogle987】,eul