# I am currently using windows, instance/beat.go:743 Exiting: error initializing publisher: No outputs are defined. Please define one under the output section

**URL:** <https://discuss.elastic.co/t/i-am-currently-using-windows-instance-beat-go-743-exiting-error-initializing-publisher-no-outputs-are-defined-please-define-one-under-the-output-section/150953>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 4, 2018, 1:27am UTC](https://discuss.elastic.co/t/i-am-currently-using-windows-instance-beat-go-743-exiting-error-initializing-publisher-no-outputs-are-defined-please-define-one-under-the-output-section/150953 "2018-10-04T01:27:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohit\_kumar\_Jain](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@rohit\_kumar\_Jain](https://discuss.elastic.co/u/rohit_kumar_Jain)\
**Post date:** [October 4, 2018, 1:27am UTC](https://discuss.elastic.co/t/i-am-currently-using-windows-instance-beat-go-743-exiting-error-initializing-publisher-no-outputs-are-defined-please-define-one-under-the-output-section/150953/1 "2018-10-04T01:27:42Z")

</div>

I am currently using windows while running filebeat -e -c filebeat.yml -d "publish" command in order to post logs to ES, I am getting this error:

instance/beat.go:743 Exiting: error initializing publisher: No outputs are defined. Please define one under the output section. Exiting: error initializing publisher: No outputs are defined. Please define one under the output section.

my filebeat.yml file:

filebeat.prospectors:

- input\_type: log  
paths:

- output.elasticsearch:  
hosts: ["localhost:9200"]

Note: I have checked this yml file in [http://www.yamllint.com/](http://www.yamllint.com/) looks like this is valid file.

Can someone please help me?

---

<div class="post-metadata">

**Author:** ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)\
**Post date:** [October 4, 2018, 7:01am UTC](https://discuss.elastic.co/t/i-am-currently-using-windows-instance-beat-go-743-exiting-error-initializing-publisher-no-outputs-are-defined-please-define-one-under-the-output-section/150953/2 "2018-10-04T07:01:00Z")

</div>

Hi @rohit_kumar_Jain

Can you try defining the output outside of the prospector, please?

---

<div class="post-metadata">

**Author:** ![rohit\_kumar\_Jain](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@rohit\_kumar\_Jain](https://discuss.elastic.co/u/rohit_kumar_Jain)\
**Post date:** [October 5, 2018, 7:25am UTC](https://discuss.elastic.co/t/i-am-currently-using-windows-instance-beat-go-743-exiting-error-initializing-publisher-no-outputs-are-defined-please-define-one-under-the-output-section/150953/3 "2018-10-05T07:25:00Z")

</div>

Hi Mario,

Thanks for your reply. I am not really able to understand your question. I mean I have defined the output path, isn't it correct?

---

<div class="post-metadata">

**Author:** ![popa](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@popa](https://discuss.elastic.co/u/popa)\
**Post date:** [October 5, 2018, 7:48am UTC](https://discuss.elastic.co/t/i-am-currently-using-windows-instance-beat-go-743-exiting-error-initializing-publisher-no-outputs-are-defined-please-define-one-under-the-output-section/150953/4 "2018-10-05T07:48:57Z")

</div>

From the code you posted, it looks like your `output.elasticsearch:` is nested below `filebeat.prospectors:`, which would cause an error when parsed by filebeat.

Your `output.elasticsearch:` should look like this:

```auto
#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["localhost:9200"]

```

You can reference the default `filebeat.yml` config here: [https://github.com/elastic/beats/blob/ce66d6a0c81542893565008e46452ebcfd7eb51c/filebeat/filebeat.yml#L147-L150](https://github.com/elastic/beats/blob/ce66d6a0c81542893565008e46452ebcfd7eb51c/filebeat/filebeat.yml#L147-L150)

---

<div class="post-metadata">

**Author:** ![rohit\_kumar\_Jain](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@rohit\_kumar\_Jain](https://discuss.elastic.co/u/rohit_kumar_Jain)\
**Post date:** [October 9, 2018, 10:58am UTC](https://discuss.elastic.co/t/i-am-currently-using-windows-instance-beat-go-743-exiting-error-initializing-publisher-no-outputs-are-defined-please-define-one-under-the-output-section/150953/5 "2018-10-09T10:58:22Z")

</div>

Hey Guys,

Thank you so much for your time to reply my queries. I would really appreciate the time. The issue is fixed now.

---

<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:** [November 6, 2018, 11:04am UTC](https://discuss.elastic.co/t/i-am-currently-using-windows-instance-beat-go-743-exiting-error-initializing-publisher-no-outputs-are-defined-please-define-one-under-the-output-section/150953/6 "2018-11-06T11:04:43Z")

</div>

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