-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fluentd only ships logs from it's own namespace. #8
Comments
From @jchauncey on October 14, 2016 12:21 I am actually working on this plugin right now. It definitely was not intended for use in an environment like kubernetes. If I got you a custom image to try would you be willing to replace what you have with it? See if it works for you? |
From @FrederikNS on October 14, 2016 12:40 Sure, I would love to help out! |
From @jchauncey on October 14, 2016 12:41 k let me get a pull request setup and ill get you an image out of the deisci registry to try out. stay tuneed =) |
From @jchauncey on October 14, 2016 13:50 Alright so I'm not sure if this will fix your orignal problem (I never saw that problem yesterday) but this new image will allow you to do the following things:
Here is the image you can use -
Then you just need to do
|
From @jchauncey on October 14, 2016 16:40 Ive done a slight refactoring if you want to try this image instead - |
From @FrederikNS on October 14, 2016 21:23 I just tried |
From @jchauncey on October 14, 2016 21:39 yup. well get this merged and a release cut shortly.. waiting on some reviewers =) |
From @thenayr on October 18, 2016 16:25 Just chiming in on this, @jchauncey Thank you for the recent changes, this Fluentd image is much improved over the cluster default image that ships with Kubernetes. I especially like the new I'm testing this out in my clusters right now using the canary image |
From @thenayr on October 18, 2016 20:27 After a few hours of testing with this, a few bits of feedback: It doesn't seem possible to get the following format of index: Your example above with Even just trying to get the default Also it would be nice to be able to customize |
From @jchauncey on October 18, 2016 20:34 k the PR is still open so i can make some small changes if you want. You can see the logic here for writing out hte index name - https://github.com/deis/fluentd/pull/60/files#diff-5198419c579f23c85b30a0fed99ddee9R323 If you want to write all the logs to 1 index you can set You can find these changes in - |
From @thenayr on October 18, 2016 20:41 All of the feedback was from the image you just specified: The issue I'm having is that
Results in writing to the index name Not sure why this is happening as the logic for index name you pointed out seems to be accounting for this correctly.. |
From @jchauncey on October 18, 2016 20:43 That image is fairly old so I would try deploying the image I specified above which has some of the newer environment variables. |
From @thenayr on October 18, 2016 20:47 I'm slightly confused, the first image you referenced a few days ago was I'm pretty certain this is the correct image For clarity sake, here is more of my daemonset spec:
|
From @jchauncey on October 18, 2016 20:51 Ah ok yeah if you are using Let me see if I can replicate the behavior you are seeing. |
From @thenayr on October 18, 2016 21:55 After some testing, this appears to be the offending line - https://github.com/deis/fluentd/pull/60/files#diff-839dc2adb331ca2e1acf44b97bdf9796R40 Removing that line I can properly set a So it seems like even if we don't set a |
From @jchauncey on October 18, 2016 21:57 hrm k their configuration is terrible and makes it really hard to have a shell script setup those values. I will have to come up with something to help with this |
From @FrederikNS on October 14, 2016 11:57
Hi Deis,
I have been trying to run the deis/fluentd:v2.4.2 image as part of my Kubernetes cluster, as I wanted better tagging than the official fluentd container provided. The container seems to ship the logs to elasticsearch just fine, but unfortunately it only grabs the logs for the namespace which it's started up in.
I decided to start it up in the
kube-system
namespace, as it seemed like a "system" service, so now I can only see the logs from containers in thekube-system
namespace. Is this how deis/fluentd works, or do I need to configure something? I can see that the configs in the repository uses thedeis
namespace.The daemonset I created looks like this:
The fluentd logs mention my containers, for example:
Copied from original issue: deis/fluentd#59
The text was updated successfully, but these errors were encountered: