-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tag based upon namespace #73
Comments
Yep. Use the record_transformer with the rewrite_tag_filter plugins like so:
The filter at the bottom is an example of matching by namespace, you would match the same way with your output plugin. |
BOOM! Worked perfectly! Thanks so much for the quick and complete response! |
Thanks @chancez! |
I liked your approach and added some Go code to automate the boring stuff. You can have a look at it here: https://github.com/vmware/kube-fluentd-operator I've taken the tag-rewriting to the extreme and at the namespace level you can now target a container in a pod based on container labels:
I'd be happy to get your feedback. Thanks, |
does this syntax work with fluentd 0.12? We still have to support that version of fluentd. |
As such, it will work with older versions of Fluentd but only in the context of kube-fluentd-operator. |
Translated by whom? By fluentd? Do you run this through some sort of pre-processor? |
@richm If you read his first comment and most recent one he's specifically referring to the kube-fluentd-operator doing the preprocessing. |
is there any ways to restrict kube-system namespace logs in fluentd conf? |
Hi @chancez, Our scenario does not have a fluentd interface for logs and we would like to create these in Cloud watch. What changes needs to be the done to the code mentioned above? Please advice. Thanks |
What does this mean? " fluentd interface for logs" |
Is there a way to have fluentd tag the logs based on the namespace? I have a need to put different application (which are defined by namespace) into different destinations.
The text was updated successfully, but these errors were encountered: