# How to Configure FileBeat to be used with an Existing Index while deploying in Kubernetes as DaemonSet

**URL:** <https://discuss.elastic.co/t/how-to-configure-filebeat-to-be-used-with-an-existing-index-while-deploying-in-kubernetes-as-daemonset/299601>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 14, 2022, 10:44am UTC](https://discuss.elastic.co/t/how-to-configure-filebeat-to-be-used-with-an-existing-index-while-deploying-in-kubernetes-as-daemonset/299601 "2022-03-14T10:44:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roy3861](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@roy3861](https://discuss.elastic.co/u/roy3861)\
**Post date:** [March 14, 2022, 10:44am UTC](https://discuss.elastic.co/t/how-to-configure-filebeat-to-be-used-with-an-existing-index-while-deploying-in-kubernetes-as-daemonset/299601/1 "2022-03-14T10:44:34Z")

</div>

Hi,  
We are trying to deploy filebeat in our Kuberenets cluster following: [Running Filebeat on Kubernetes | Filebeat Reference [6.8] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/6.8/running-on-kubernetes.html)

However we want the Pod logs to go to a pre defined Index in Elastic. How to config the same in Kubernets deployment configuration? Please help.

---

<div class="post-metadata">

**Author:** ![roy3861](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@roy3861](https://discuss.elastic.co/u/roy3861)\
**Post date:** [March 16, 2022, 4:20pm UTC](https://discuss.elastic.co/t/how-to-configure-filebeat-to-be-used-with-an-existing-index-while-deploying-in-kubernetes-as-daemonset/299601/2 "2022-03-16T16:20:24Z")

</div>

We were successful with putting the index name in filebeat-kubernetes.yaml

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 13, 2022, 6:20pm UTC](https://discuss.elastic.co/t/how-to-configure-filebeat-to-be-used-with-an-existing-index-while-deploying-in-kubernetes-as-daemonset/299601/3 "2022-04-13T18:20:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
