module Fluent
This is Fluent
OSS Input Plugin
This is Fluent
OSS Output Plugin
Usage: In order to write output data to OSS, you should add configurations like below <match pattern>
@type oss endpoint <OSS endpoint to connect to> bucket <Your bucket name> access_key_id <Your access key id> access_key_secret <Your access secret key> path <Path prefix of the files on OSS> key_format %{path}%{time_slice}_%{index}.%{file_extension}
if you want to use ${tag} or %Y/%m/%d/ like syntax in path/key_format, need to specify tag for ${tag} and time for %Y/%m/%d in <buffer> argument.
<buffer tag,time> @type file path /var/log/fluent/oss timekey 3600 # 1 hour partition timekey_wait 10m timekey_use_utc true # use utc </buffer> <format> @type json </format>
</match>