lefteris
4 years ago
2 changed files with 40 additions and 33 deletions
@ -1,33 +0,0 @@ |
|||
<source> |
|||
@type forward |
|||
@id input1 |
|||
@label @mainstream |
|||
port 24224 |
|||
</source> |
|||
|
|||
<filter **> |
|||
@type stdout |
|||
</filter> |
|||
|
|||
<label @mainstream> |
|||
<match docker.**> |
|||
@type file |
|||
@id output_docker1 |
|||
path /fluentd/log/docker.*.log |
|||
symlink_path /fluentd/log/docker.log |
|||
append true |
|||
time_slice_format %Y%m%d |
|||
time_slice_wait 1m |
|||
time_format %Y%m%dT%H%M%S%z |
|||
</match> |
|||
<match **> |
|||
@type file |
|||
@id output1 |
|||
path /fluentd/log/data.*.log |
|||
symlink_path /fluentd/log/data.log |
|||
append true |
|||
time_slice_format %Y%m%d |
|||
time_slice_wait 10m |
|||
time_format %Y%m%dT%H%M%S%z |
|||
</match> |
|||
</label> |
@ -0,0 +1,40 @@ |
|||
<source> |
|||
@type forward |
|||
port 24224 |
|||
bind 0.0.0.0 |
|||
</source> |
|||
|
|||
<filter mongo.*> |
|||
@type parser |
|||
key_name log |
|||
reserve_data true |
|||
<parse> |
|||
@type json # apache2, nginx, etc. |
|||
</parse> |
|||
</filter> |
|||
|
|||
<match mongo.*> |
|||
# @type copy |
|||
# <store> |
|||
# @type stdout |
|||
# </store> |
|||
# <store> |
|||
@type mongo |
|||
|
|||
host mongo |
|||
port 27017 |
|||
|
|||
database fluentdb |
|||
collection test |
|||
|
|||
capped |
|||
capped_size 1024m |
|||
# interval |
|||
<buffer> |
|||
flush_interval 10s |
|||
</buffer> |
|||
# </store> |
|||
<format> |
|||
@type json |
|||
</format> |
|||
</match> |
Loading…
Reference in new issue