如何为我的流利事件添加标签

All*_* Jz 1 fluentd

我写的

<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 请求添加标签?

use*_*914 7

<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 文件代码。我想你能解决你的问题!!