我写的
<source>
@type tail
format nginx
path /home/work/opt/nginx/var/log/access.log
tag nginx.access
</source>
Run Code Online (Sandbox Code Playgroud)
在我的 fluent.conf 文件中并与 stdout 匹配,但是当我对我的网站进行 post 调用时,nginx 将访问记录到其日志中,但 fluentd_ui 建议
[warn]: no patterns matched tag="nginx.access"
Run Code Online (Sandbox Code Playgroud)
如何为我的 http 请求添加标签?
<source>
@type tail
path /var/log/nginx/access.log
pos_file /var/log/access.log.pos
tag apache.access
format nginx
</source>
<match apache.access>
@type stdout
</match>
Run Code Online (Sandbox Code Playgroud)
尝试运行此 conf 文件代码。我想你能解决你的问题!!
| 归档时间: |
|
| 查看次数: |
4735 次 |
| 最近记录: |