# Exiting: error initializing publisher: output type http undefined in filebeat.yml

**URL:** <https://discuss.elastic.co/t/exiting-error-initializing-publisher-output-type-http-undefined-in-filebeat-yml/330258>\
**Category:** Elastic Agent\
**Created:** [April 19, 2023, 4:27am UTC](https://discuss.elastic.co/t/exiting-error-initializing-publisher-output-type-http-undefined-in-filebeat-yml/330258 "2023-04-19T04:27:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthic](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@karthic](https://discuss.elastic.co/u/karthic)\
**Post date:** [April 19, 2023, 4:27am UTC](https://discuss.elastic.co/t/exiting-error-initializing-publisher-output-type-http-undefined-in-filebeat-yml/330258/1 "2023-04-19T04:27:16Z")

</div>

Hi  
I need to forward the logs to my own api, In the config, i am using Http.output which says the error  
"Exiting: error initializing publisher: output type http undefined in filebeat"

output.http:  
url: "[https://APIXXXXXX](https://APIXXXXXX) "  
method: "post"  
headers:  
Content-Type: "application/json"  
body:  
index: "security-logs-%{+yyyy.MM.dd}"  
logs: "{{json .}}"

please confirm whether i need to use some other module to forward the logs

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 19, 2023, 5:39am UTC](https://discuss.elastic.co/t/exiting-error-initializing-publisher-output-type-http-undefined-in-filebeat-yml/330258/2 "2023-04-19T05:39:28Z")

</div>

Hi @karthic welcome to the community!

Filebeat does not have an http output

The available outputs can be found [here](https://www.elastic.co/guide/en/beats/filebeat/current/configuring-output.html)

> The following topics describe how to configure each supported output. If you’ve secured the Elastic Stack, also read Secure for more about security-related configuration options.

> Elasticsearch Service  
> Elasticsearch  
> Logstash  
> Kafka  
> Redis  
> File  
> Console

You will need to use something else like logstash [http output](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-http.html)

And of course you could use

Filebeat \> Logstash \> http output

---

<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:** [May 17, 2023, 5:39am UTC](https://discuss.elastic.co/t/exiting-error-initializing-publisher-output-type-http-undefined-in-filebeat-yml/330258/3 "2023-05-17T05:39:45Z")

</div>

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