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
</source>
<filter mongo.*>
@type parser
key_name log
reserve_data true
<parse>
@type json # apache2, nginx, etc.
</parse>
</filter>
# <filter mongo.*>
# @type parser
# key_name log
# reserve_data true
# <parse>
# @type json # apache2, nginx, etc.
# </parse>
# </filter>
# <filter mongo.mongo>
# @type record_transformer
# # remove key1 and key2 keys from record
# remove_keys $.log.t
# </filter>
<match mongo.*>
@type copy

Loading…
Cancel
Save