first commit
This commit is contained in:
23
logging/fluentd/conf/fluent.conf
Normal file
23
logging/fluentd/conf/fluent.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
<match mongo.**>
|
||||
@type mongo
|
||||
host mongodb
|
||||
port 27017
|
||||
database LogDB
|
||||
collection Log
|
||||
<buffer>
|
||||
flush_interval 5s
|
||||
</buffer>
|
||||
</match>
|
||||
|
||||
|
||||
|
||||
<source>
|
||||
@type tail
|
||||
path /fluentd/businesslogs/*.json
|
||||
pos_file /var/log/td-agent/serverlog.pos
|
||||
<parse>
|
||||
@type json
|
||||
</parse>
|
||||
tag mongo.server.log
|
||||
</source>
|
||||
|
||||
Reference in New Issue
Block a user