fluent / fluent-bit

Fast and Lightweight Logs and Metrics processor for Linux, BSD, OSX and Windows
https://fluentbit.io
Apache License 2.0
5.84k stars 1.58k forks source link

Kube_filter : Extracting ip address of the pod as one of the metadata #2301

Open Bhavanaashok33 opened 4 years ago

Bhavanaashok33 commented 4 years ago

Hi, I am not sure if this feature is already available.. so reaching out to your guys. Please let me know..

I have deployed Fluentbit Daemonset on the Kubernetes cluster. I have followed everything from the below instructions and things are working as expected. https://docs.fluentbit.io/manual/installation/requirements https://docs.fluentbit.io/manual/installation/sources/build-and-install

I was thinking, if there is a way to query Kubernetes API Server to extract Pod IP address. Does Fluentbit Kubernetes filter supports this feature ?

Thanks

edsiper commented 4 years ago

do you want to append Pod IP to the records ?

we don't process such information at the moment

Bhavanaashok33 commented 4 years ago

Yes, that's exactly what I am looking for.

edsiper commented 4 years ago

is this info exposed as part of the metadata from API server ?

Bhavanaashok33 commented 4 years ago

It should be. I am assuming if not, then "kubectl get pods" wouldn’t be able to print it

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 3 years ago

This issue was closed because it has been stalled for 5 days with no activity.