[Q&A] %{tag} ignored inside <match> #4830
Unanswered
duncan-bayne
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is a problem?
I'm trying to prefix my objects in S3 with the tag that was matched. However,
%{tag}
is always empty / nil in the<match>
directive.I suspect I'm missing something simple here as other variables such as
%{path}
have expected values inside<match>
.Describe the configuration of Fluentd
If I have:
However,
%{tag}
ins3_object_key_format
is always evaluated to an empty string, never to the tag that was matched (s3.nginx.error
in this case).So e.g. I get S3 object keys like
2025021206.ip-10-10-2-126_1.gz
, whereas I'd expect something likes3.nginx.error.2025021206.ip-10-10-2-126_1.gz
.Environment
Thanks in advance for any advice 🙏 Really feel like I'm missing something simple here.
Beta Was this translation helpful? Give feedback.
All reactions