Azure Storage 로 로그 백업
<source>
@type tail
@log_level warn
<parse>
@type none
</parse>
path /var/log/<1>/<2>/*/*/%Y-%m-%d.txt
pos_file /tmp/td-agent/<1>/<2>/log_file.pos
tag api.*
</source>
<match api.**>
@type azurestorage
azure_storage_account stvmhappytuk
azure_storage_access_key <key>
azure_container platformlogs
azure_storage_type blob
store_as text
auto_create_container true
path qa/<1>/<2>/${tag[4]}/${tag[5]}/${tag[6]}/
azure_object_key_format %{path}%{time_slice}_%{index}.%{file_extension}
time_slice_format %Y-%m-%d
# if you want to use ${tag} or %Y/%m/%d/ like syntax in path / s3_object_key_format,
# need to specify tag for ${tag} and time for %Y/%m/%d in <buffer> argument.
<buffer tag,time>
@type file
flush_interval 50
flush_at_shutdown true
path /var/log/fluent/api/azurestorageappendblob
timekey 5 # 1 hour partition
timekey_use_utc true # use utc
</buffer>
</match>Last updated