# Secure traffic via HTTPS - using kafka.output

**URL:** <https://discuss.elastic.co/t/secure-traffic-via-https-using-kafka-output/338779>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [July 19, 2023, 11:37am UTC](https://discuss.elastic.co/t/secure-traffic-via-https-using-kafka-output/338779 "2023-07-19T11:37:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethrbunny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ethrbunny/32/34603_2.png) [@ethrbunny](https://discuss.elastic.co/u/ethrbunny)\
**Post date:** [July 19, 2023, 11:37am UTC](https://discuss.elastic.co/t/secure-traffic-via-https-using-kafka-output/338779/1 "2023-07-19T11:37:45Z")

</div>

I'd like to start using elastic-agent but doing so requires that I setup xpack security.

In the docs ([here](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-basic-setup-https.html#configure-metricbeat-tls)) it gives an example for sending data directly to elasticsearch.

We use 'kafka.output'.

Is this not supported for TLS security? Should I just stop at the 'minimal security' level?

---

<div class="post-metadata">

**Author:** ![ethrbunny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ethrbunny/32/34603_2.png) [@ethrbunny](https://discuss.elastic.co/u/ethrbunny)\
**Post date:** [July 24, 2023, 1:43pm UTC](https://discuss.elastic.co/t/secure-traffic-via-https-using-kafka-output/338779/2 "2023-07-24T13:43:10Z")

</div>

Looks like kafka as an avenue from hosts-\>elastic-agent-\>elastic-server isn't supported.

> **[Beats and Elastic Agent capabilities | Fleet and Elastic Agent Guide \[8.8\] |...](https://www.elastic.co/guide/en/fleet/current/beats-agent-comparison.html)**

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [August 1, 2023, 9:26am UTC](https://discuss.elastic.co/t/secure-traffic-via-https-using-kafka-output/338779/3 "2023-08-01T09:26:31Z")

</div>

Correct, it is not supported yet, but is a work in progress, you can follow [[meta] Implement the kafka output · Issue #116 · elastic/elastic-agent-shipper · GitHub](https://github.com/elastic/elastic-agent-shipper/issues/116)

---

<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:** [August 29, 2023, 11:26am UTC](https://discuss.elastic.co/t/secure-traffic-via-https-using-kafka-output/338779/4 "2023-08-29T11:26:45Z")

</div>

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