fluent-plugin-rewrite-tag-filter icon indicating copy to clipboard operation
fluent-plugin-rewrite-tag-filter copied to clipboard

Mutiple store not working don't see any error but not written to output

Open bkannadassan opened this issue 3 years ago • 0 comments

<source>
  @type forward
  port 24224
  bind 0.0.0.0
</source>
<match *.**>
 @type copy

  <store>
    @type file
    path /var/log/pcslogs
    <buffer>
      flush_interval 5s
      timekey 1d
      timekey_use_utc true
      timekey_wait 10m
    </buffer>
  </store>
  <store>
    @type rewrite_tag_filter
    <rule>
      key     container_name
      pattern /.+/
      tag     pcs
    </rule>
  </store>
</match>
<match pcs>
 @type copy
  <store>
    @type file
    path /var/log/pcs
    <buffer>
      flush_interval 5s
      timekey 1d
      timekey_use_utc true
      timekey_wait 10m
    </buffer>
  </store>
  <store>
   @type stdout
 </store>
</match>

We have logs coming from multiple container in above we are trying to write to a file all logs and also write to another file only the container matching pcs. We tried pattern /pcs/ it didn't work and later moved to /.+/ to see if its works for all still none works . rgds Balaji

bkannadassan avatar Dec 16 '20 15:12 bkannadassan