# Not able to send data to Zabbix server

**URL:** <https://discuss.elastic.co/t/not-able-to-send-data-to-zabbix-server/146629>\
**Category:** Logstash\
**Created:** [August 30, 2018, 7:10am UTC](https://discuss.elastic.co/t/not-able-to-send-data-to-zabbix-server/146629 "2018-08-30T07:10:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahulkumar](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@Rahulkumar](https://discuss.elastic.co/u/Rahulkumar)\
**Post date:** [August 30, 2018, 7:10am UTC](https://discuss.elastic.co/t/not-able-to-send-data-to-zabbix-server/146629/1 "2018-08-30T07:10:21Z")

</div>

Hi,

I am trying to parse the logs and sending it to Zabbix.  
I am using centOS.

In logstash.yml file, I have configured only 1 setting in pipeline settig section:  
`path.config: /etc/logstash/conf.d/*.conf`

Everything else is default:  
[2018-08-30T08:36:52,357][DEBUG][logstash.runner] pipeline.id: "main"  
[2018-08-30T08:36:52,357][DEBUG][logstash.runner] pipeline.system: false  
[2018-08-30T08:36:52,357][DEBUG][logstash.runner] pipeline.workers: 1  
[2018-08-30T08:36:52,357][DEBUG][logstash.runner] pipeline.output.workers: 1  
[2018-08-30T08:36:52,357][DEBUG][logstash.runner] pipeline.batch.size: 125  
[2018-08-30T08:36:52,357][DEBUG][logstash.runner] pipeline.batch.delay: 5  
[2018-08-30T08:36:52,357][DEBUG][logstash.runner] pipeline.unsafe\_shutdown: false  
[2018-08-30T08:36:52,358][DEBUG][logstash.runner] pipeline.reloadable: true

Below is my pipelines.yml file:

```
- pipeline.id: xx-pipeline
  path.config: "/etc/logstash/conf.d/xxx.conf"
  pipeline.workers: 2
- pipeline.id: yy-pipeline
  path.config: "/etc/logstash/conf.d/yyy.conf"
  pipeline.workers: 2
- pipeline.id: zz-pipeline
  path.config: "/etc/logstash/zzz.conf"
  pipeline.workers: 2
- pipeline.id: aa-pipeline
  path.config: "/etc/logstash/conf.d/aaa.conf"
  pipeline.workers: 2

```

first 2 config files are sending data to Elasticsearch and I am able to see logstash data in Kibana.  
last 2 config files are sending data to zabbix server and I am not able to see any data in Zabbix server.

I traced logstash logs and below is what I found:

```
[2018-08-30T08:36:52,392][DEBUG][logstash.config.source.multilocal] Reading pipeline configurations from YAML {:location=>"/etc/logstash/pipelines.yml"}
[2018-08-30T08:36:52,405][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified

[2018-08-30T08:37:05,894][DEBUG][logstash.pipeline] filter received {"event"=>{"@version"=>"1", "host"=>"bbb", "path"=>"cccccccc/server.log", "@timestamp"=>2018-08-30T06:37:05.877Z, "message"=>"2018-08-30 00:00:14 CEST [MED.0110.0028E] [MED1250472912-66330] <-- Proxy service: MND_CORPORATE_M4M_YSD_HYBRIS_ORDER_CREATION_WS_VS(1.0). Error in the Mediator outbound client. Web service processing error; more details in the web service error log on provider side (UTC timestamp 20180829220014; Transaction ID 5B87FE590FF91C80E1008000C0A88D71)"}}
[2018-08-30T08:37:09,642][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline_id=>"main", :thread=>"#<Thread:0x1e7cf3dc@/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:290 sleep>"}
```

---

<div class="post-metadata">

**Author:** ![\_Alex](https://avatars.discourse-cdn.com/v4/letter/_/54ee81/32.png) [@\_Alex](https://discuss.elastic.co/u/_Alex)\
**Post date:** [August 30, 2018, 7:19am UTC](https://discuss.elastic.co/t/not-able-to-send-data-to-zabbix-server/146629/2 "2018-08-30T07:19:10Z")

</div>

How are you starting Logstash? If you use the `-e` (`--config.string`) or `-f` (`--path.config`) command line arguments then it will not read `pipelines.yml`. Starting it as a Linux service may be using the `--path.config` option by default.

---

<div class="post-metadata">

**Author:** ![Rahulkumar](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@Rahulkumar](https://discuss.elastic.co/u/Rahulkumar)\
**Post date:** [August 30, 2018, 7:23am UTC](https://discuss.elastic.co/t/not-able-to-send-data-to-zabbix-server/146629/3 "2018-08-30T07:23:51Z")

</div>

Hi Alex,

I am using below command to start logstash:

`sudo /usr/bin/systemctl start logstash`

---

<div class="post-metadata">

**Author:** ![\_Alex](https://avatars.discourse-cdn.com/v4/letter/_/54ee81/32.png) [@\_Alex](https://discuss.elastic.co/u/_Alex)\
**Post date:** [August 30, 2018, 7:40am UTC](https://discuss.elastic.co/t/not-able-to-send-data-to-zabbix-server/146629/4 "2018-08-30T07:40:05Z")

</div>

You have `path.config` configured in your `logstash.yml`. From the [multiple pipelines docs](https://www.elastic.co/guide/en/logstash/current/multiple-pipelines.html) this will be used instead of the pipelines file if you have both configured.

Remove the `path.config` line from `logstash.yml` and it should work.

---

<div class="post-metadata">

**Author:** ![Rahulkumar](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@Rahulkumar](https://discuss.elastic.co/u/Rahulkumar)\
**Post date:** [August 30, 2018, 9:45am UTC](https://discuss.elastic.co/t/not-able-to-send-data-to-zabbix-server/146629/5 "2018-08-30T09:45:43Z")

</div>

Yes it worked!

Thanks Alex! 🙂

---

<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:** [September 27, 2018, 9:45am UTC](https://discuss.elastic.co/t/not-able-to-send-data-to-zabbix-server/146629/6 "2018-09-27T09:45:51Z")

</div>

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