Created
June 12, 2018 01:13
-
-
Save k-kurikuri/1869391a21a3eed6ab6bf157db88c6a5 to your computer and use it in GitHub Desktop.
fluent, GCSの連携サンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<match gcs.**> | |
@type gcs | |
project gcp-project-name | |
keyfile xxxxxxxyyyyyyy.json | |
bucket bucket-name | |
object_key_format %{time_slice}_%{index}.%{file_extension} | |
buffer_path /var/log/td-agent/buffer | |
store_as json | |
time_slice_format %Y%m%d | |
time_slice_wait 1m | |
overwrite true | |
format single_value | |
flush_interval 10s | |
utc | |
</match> | |
<source> | |
@type tail | |
path logs/error.log | |
pos_file logs/error.log.pos | |
tag gcs.err | |
format none | |
</source> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in_tail, fluent-plugin-gcsの連携サンプル