-
Notifications
You must be signed in to change notification settings - Fork 90
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
Plugin fails when specifying buffer chunk keys #150
Comments
Hello, Davide, Unfortunately, our plugin doesn’t support buffer key options. so this is expected that it throws exception. |
Hey @rockb1017! Thanks for the quick reply. I've glanced a bit at the source code, it seems like this plugin has been using a specific version of Fluentd plugin plumbing that doesn't allow buffer key options. Do you mind sharing a bit more specifics on why it needs to be this way? |
Hello, Jason! yea, it inherits this class "Fluent::BufferedOutput" which doesn't support. I am not sure on why. It was before I joined Splunk. Do you want to shard chunks by tag because you want to make chunk of events for the same index? |
We tag log events by their originating Kubernetes namespaces. Due to the heterogeneous log emission patterns by different services, we would prefer that log events without corresponding Splunk indexes (mapped by K8s namespaces) wouldn't interfere with those that have indexes. Is this something addressable at upstream? |
hello, in Splunk Connect for Kubernetes chart, we have fluentd configmap for getting index name from k8s annotations("splunk.com/index") and if empty, ingest them to default index. I think this would be helpful for you. so you can configure your pipeline to have a default index name to be used so that it would be collected in the default index instead of dropping them. Then other valid logs in the same batch wouldn't be dropped as well. in the SCK chart, we also have "splunk.com/exclude" annotation to not ingest any logs from pods or namespaces. |
Imagine a wilder west, where there is no control over the distributed action of "trying to send to an index" ... |
It should be fixed when #208 is merged. |
What happened:
The following buffer configuration for a
match
with type@splunk_plugin_hec
(v 1.2.4)failed with the following exception
What you expected to happen:
No exception and separate chunk buffers on disk.
How to reproduce it (as minimally and precisely as possible):
See above configuration.
Anything else we need to know?:
Environment:
kubectl version
): 1.17 and 1.18ruby --version
): 2.5.0cat /etc/os-release
): fluentd Docker imagefluent/fluentd:v1.11
with Splunk plugin addedThe text was updated successfully, but these errors were encountered: