# Unable to use custom filebeat.yml configuration for kubernetes

**URL:** <https://discuss.elastic.co/t/unable-to-use-custom-filebeat-yml-configuration-for-kubernetes/165879>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 27, 2019, 5:08am UTC](https://discuss.elastic.co/t/unable-to-use-custom-filebeat-yml-configuration-for-kubernetes/165879 "2019-01-27T05:08:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkumar](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@rkumar](https://discuss.elastic.co/u/rkumar)\
**Post date:** [January 27, 2019, 5:08am UTC](https://discuss.elastic.co/t/unable-to-use-custom-filebeat-yml-configuration-for-kubernetes/165879/1 "2019-01-27T05:08:23Z")

</div>

Hi,  
I am unable to use my custom filebeat.yml using args["-c","/user/share/filebeat/prospectors.d/default.yml] in the kubernetes deployment ,  
Following is the logs generated ...

{"log":"Exiting: error loading config file: stat /user/share/filebeat/prospectors.d/default.yml]: no such file or directory\n","stream":"stderr","time":"2019-01-27T05:01:27.241220527Z"}

following is my deployment file for kubernetes version 1.9 in minikube..

apiVersion: extensions/v1beta1  
kind: Deployment  
metadata:  
name: filebeat-kube-deployment-args  
namespace: default  
labels:  
k8s-app: filebeat-kube-deployment-args  
spec:  
template:  
metadata:  
labels:  
k8s-app: filebeat-kube-deployment-args-spec  
spec:  
terminationGracePeriodSeconds: 30  
containers:  
- name: filebeat-kube-deployment-args-con  
image: [docker.elastic.co/beats/filebeat:6.5.4](http://docker.elastic.co/beats/filebeat:6.5.4)  
# args in original filebeat kubernetes  
args: [  
"-c", "/user/share/filebeat/prospectors.d/default.yml",  
]

---

<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:** [February 24, 2019, 5:13am UTC](https://discuss.elastic.co/t/unable-to-use-custom-filebeat-yml-configuration-for-kubernetes/165879/2 "2019-02-24T05:13:39Z")

</div>

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