-
Notifications
You must be signed in to change notification settings - Fork 23
Fluentd only ships logs from it's own namespace. #59
Comments
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? |
Sure, I would love to help out! |
k let me get a pull request setup and ill get you an image out of the deisci registry to try out. stay tuneed =) |
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
|
Ive done a slight refactoring if you want to try this image instead - |
I just tried |
yup. well get this merged and a release cut shortly.. waiting on some reviewers =) |
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 |
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 |
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 - |
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.. |
That image is fairly old so I would try deploying the image I specified above which has some of the newer environment variables. |
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:
|
Ah ok yeah if you are using Let me see if I can replicate the behavior you are seeing. |
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 |
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 |
This issue was moved to teamhephy/fluentd#8 |
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:
The text was updated successfully, but these errors were encountered: