# Logstash.yml confilct when configuring modules in it. Using the official elastic logstash docker image

**URL:** <https://discuss.elastic.co/t/logstash-yml-confilct-when-configuring-modules-in-it-using-the-official-elastic-logstash-docker-image/168455>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [February 14, 2019, 4:36pm UTC](https://discuss.elastic.co/t/logstash-yml-confilct-when-configuring-modules-in-it-using-the-official-elastic-logstash-docker-image/168455 "2019-02-14T16:36:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![solstarz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/solstarz/32/40979_2.png) [@solstarz](https://discuss.elastic.co/u/solstarz)\
**Post date:** [February 14, 2019, 4:36pm UTC](https://discuss.elastic.co/t/logstash-yml-confilct-when-configuring-modules-in-it-using-the-official-elastic-logstash-docker-image/168455/1 "2019-02-14T16:36:14Z")

</div>

Hi,

I have configured the azure module in logstash.yml, but after the container starts im receiving this error:

ERROR: Settings 'path.config' (-f) or 'config.string' (-e) can't be used in conjunction with (--modules) or the "modules:" block in the logstash.yml file.

I followed these instructions:  
[https://www.elastic.co/guide/en/logstash/current/azure-module.html](https://www.elastic.co/guide/en/logstash/current/azure-module.html)

Now im basically stuck.

Can someone help me out?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 14, 2019, 4:37pm UTC](https://discuss.elastic.co/t/logstash-yml-confilct-when-configuring-modules-in-it-using-the-official-elastic-logstash-docker-image/168455/2 "2019-02-14T16:37:46Z")

</div>

How are you starting logstash?

---

<div class="post-metadata">

**Author:** ![solstarz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/solstarz/32/40979_2.png) [@solstarz](https://discuss.elastic.co/u/solstarz)\
**Post date:** [February 14, 2019, 8:15pm UTC](https://discuss.elastic.co/t/logstash-yml-confilct-when-configuring-modules-in-it-using-the-official-elastic-logstash-docker-image/168455/3 "2019-02-14T20:15:40Z")

</div>

Im starting it with kubernetes.

Added this to my logstash.yml:

logstash.yml: |-  
http.host: "0.0.0.0"  
path.config: /usr/share/logstash/pipeline  
xpack.monitoring.elasticsearch.url: [http://elastic:9200](http://elastic:9200)  
xpack.monitoring.enabled: true  
modules:  
- name: azure  
var.elasticsearch.hosts: elastic:9200  
var.kibana.host: kibana:80  
var.input.azure\_event\_hubs.decorate\_events: true  
var.input.azure\_event\_hubs.consumer\_group: "logstash"  
var.input.azure\_event\_hubs.storage\_connection: "DefaultEndpointsProtocol=xxx;[EndpointSuffix=core.windows.net](http://EndpointSuffix=core.windows.net)"  
var.input.azure\_event\_hubs.threads: 8  
var.input.azure\_event\_hubs.event\_hub\_connections:  
- "Endpoint=xxxxx

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 14, 2019, 8:22pm UTC](https://discuss.elastic.co/t/logstash-yml-confilct-when-configuring-modules-in-it-using-the-official-elastic-logstash-docker-image/168455/4 "2019-02-14T20:22:41Z")

</div>

Exactly what logstash command line does starting it with kubernetes result in?

---

<div class="post-metadata">

**Author:** ![solstarz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/solstarz/32/40979_2.png) [@solstarz](https://discuss.elastic.co/u/solstarz)\
**Post date:** [February 14, 2019, 8:53pm UTC](https://discuss.elastic.co/t/logstash-yml-confilct-when-configuring-modules-in-it-using-the-official-elastic-logstash-docker-image/168455/5 "2019-02-14T20:53:11Z")

</div>

I wouldnt know what commandline it starts.  
Well this what is configured:

```
    args:
    - -f
    - /usr/share/logstash/pipeline/logstash.conf

```

This is the deployment config that i have. But the commands inside of the container is unknown to me:

apiVersion: extensions/v1beta1  
kind: Deployment  
metadata:  
name: logstash-application  
spec:  
template:  
metadata:  
labels:  
app: logstash-application  
spec:  
containers:  
- image: [docker.elastic.co/logstash/logstash:6.6.0](http://docker.elastic.co/logstash/logstash:6.6.0)  
name: logstash-application  
ports:  
- name: logstash  
containerPort: 5044  
protocol: TCP  
volumeMounts:  
- name: config  
mountPath: /usr/share/logstash/config/logstash.yml  
subPath: logstash.yml  
readOnly: true  
- name: pipeline  
mountPath: /usr/share/logstash/pipeline  
readOnly: true  
args:  
- -f  
- /usr/share/logstash/pipeline/logstash.conf  
resources:  
limits:  
memory: 1Gi  
cpu: "500m"  
requests:  
memory: 1Gi  
cpu: "500m"  
volumes:  
- name: pipeline  
configMap:  
name: logstash-application  
items:  
- key: logstash.conf  
path: logstash.conf  
- name: config  
configMap:  
name: logstash-application  
items:  
- key: logstash.yml  
path: logstash.yml

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 14, 2019, 9:27pm UTC](https://discuss.elastic.co/t/logstash-yml-confilct-when-configuring-modules-in-it-using-the-official-elastic-logstash-docker-image/168455/6 "2019-02-14T21:27:22Z")

</div>

OK, so that's the problem.

> [@solstarz](#):
>
> ERROR: Settings 'path.config' (-f) or 'config.string' (-e) can't be used in conjunction with (--modules) or the "modules:" block in the logstash.yml file.

You configured it to be started using '-f /usr/share/logstash/pipeline/logstash.conf' but you have also configured a module. You cannot have both.

---

<div class="post-metadata">

**Author:** ![solstarz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/solstarz/32/40979_2.png) [@solstarz](https://discuss.elastic.co/u/solstarz)\
**Post date:** [February 15, 2019, 9:50am UTC](https://discuss.elastic.co/t/logstash-yml-confilct-when-configuring-modules-in-it-using-the-official-elastic-logstash-docker-image/168455/7 "2019-02-15T09:50:13Z")

</div>

So what would be the right way to get this working?  
Because i even turned it off in the config but still it failed with the same message.

Anyone else that is having this issue with the docker logstash image??

---

<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:** [March 15, 2019, 9:50am UTC](https://discuss.elastic.co/t/logstash-yml-confilct-when-configuring-modules-in-it-using-the-official-elastic-logstash-docker-image/168455/8 "2019-03-15T09:50:16Z")

</div>

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