Logging 一直在尝试定制stackdriver';通过google-fluentd.conf访问日志enity
这是我的配置文件:Logging 一直在尝试定制stackdriver';通过google-fluentd.conf访问日志enity,logging,google-compute-engine,fluent,stackdriver,Logging,Google Compute Engine,Fluent,Stackdriver,这是我的配置文件: @include config.d/*.conf <source> @type prometheus port 24231 </source> <source> @type prometheus_monitor </source> <match fluent.**> @type null </match> <filter **> @type add_insert_id
@include config.d/*.conf
<source>
@type prometheus
port 24231
</source>
<source>
@type prometheus_monitor
</source>
<match fluent.**>
@type null
</match>
<filter **>
@type add_insert_ids
</filter>
<filter **>
@type record_transformer
enable_ruby
<record>
logging.googleapis.com/labels foo=bar
severity info
</record>
</filter>
<match docker>
@type google_cloud
buffer_type file
buffer_path /var/log/google-fluentd/buffers
buffer_chunk_limit 512KB
flush_interval 5s
disable_retry_limit false
retry_limit 3
retry_wait 10
max_retry_wait 300
num_threads 8
use_grpc true
partial_success true
enable_monitoring true
monitoring_type prometheus
</match>
@include config.d/*.conf
@普罗米修斯型
端口24231
@普罗米修斯式监护仪
@类型null
@键入add\u insert\u id
@型记录变压器
启用ruby
logging.googleapis.com/labels foo=bar
严重性信息
@键入谷歌云
缓冲区类型文件
buffer\u path/var/log/google fluentd/buffers
缓冲区块限制512KB
冲洗间隔5s
禁用\u重试\u限制错误
重试\u限制3
重试\u等待10
最大重试次数\u等待300次
线程数8
使用\u grpc true
部分成功是真的
启用\u监视为真
监测型普罗米修斯
如您所见,它与默认版本完全相同,但有一些调整
Esp,extra
状态,当我试图向日志输出添加严重性和标签时,但似乎没有任何变化。
我什么时候弄错的?顺便说一句,我遵循了官方文件
先谢谢你