Browse Source

config changes for mongo

master
lefteris 4 years ago
parent
commit
96b21a6bcc
  1. 24
      fluent/fluent.conf

24
fluent/fluent.conf

@ -4,14 +4,22 @@
bind 0.0.0.0 bind 0.0.0.0
</source> </source>
<filter mongo.*> # <filter mongo.*>
@type parser # @type parser
key_name log # key_name log
reserve_data true # reserve_data true
<parse> # <parse>
@type json # apache2, nginx, etc. # @type json # apache2, nginx, etc.
</parse> # </parse>
</filter> # </filter>
# <filter mongo.mongo>
# @type record_transformer
# # remove key1 and key2 keys from record
# remove_keys $.log.t
# </filter>
<match mongo.*> <match mongo.*>
@type copy @type copy

Loading…
Cancel
Save