Skip to content

Instantly share code, notes, and snippets.

@k-kurikuri
Created June 12, 2018 01:13
Show Gist options
  • Save k-kurikuri/1869391a21a3eed6ab6bf157db88c6a5 to your computer and use it in GitHub Desktop.
Save k-kurikuri/1869391a21a3eed6ab6bf157db88c6a5 to your computer and use it in GitHub Desktop.
fluent, GCSの連携サンプル
<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>
@k-kurikuri
Copy link
Author

in_tail, fluent-plugin-gcsの連携サンプル

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment