Closed ghost closed 4 years ago
Current config is as follows:
path ec2-logs/ s3_object_key_format %{path}%{time_slice}_%{index}.%{file_extension} time_slice_format %Y%m%d%H%M
Now, I want to use more {instance_id) field in s3_object_key_format:
path ec2-logs/%{instance_id}/ s3_object_key_format %{path}%{time_slice}_%{index}.%{file_extension} time_slice_format %Y%m%d%H%M
for logs example:
ec2-logs/i-xxxxxxx/202009101200_0.gz
What do I need to do to get the instance_id field?
Current config is as follows:
Now, I want to use more {instance_id) field in s3_object_key_format:
for logs example:
What do I need to do to get the instance_id field?