-
Notifications
You must be signed in to change notification settings - Fork 98
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
Attach original tag for 'mounted-file' #26
Comments
mounted-file
Hi, In your case however all the logevents come from a single pod meaning they share the same labels. So what can be done here is let users attach new labels to the
Then you use the $labels macro to select the logs:
Indeed, this would be easy to add - do you think this would help you in your setup?. |
@cw-sakamoto In my previous comment I assumed you have two log files produced by the same container in a single pod.
|
@jvassev Thanks for your comments.
You are right. I assume the same container. It can be solved by #26 (comment) , however I thought that it is difficult to distinguish from label of k8s itself by this writing style.
Under this basic idea, I think that my proposal(add fluentd tag) is difficult, so think a little more...🤔 |
This is just idea...add
or
What do you think this idea? |
I thinks it's better to use |
Following the discussion in #26 now any `mounted_file` source can attach extra labels to the log events. These labels cannot override k8s-defined labels and such attempts will be silently ignored.
@cw-sakamoto Just put |
The |
When using
mounted-file
it will be tagkube.{namespace}.{pod_name}.{container_name}
, but I'd like to attach original tag(kube.{namespace}.{pod_name}.{container_name}.mytag
).example:
->
kube.{namespace}.{pod_name}.{container_name}.hello-log
Why?
I'd like to separate output process in the container with each tags.
example:
If you can do with the current specifications, please let me know.
The text was updated successfully, but these errors were encountered: