# OAUTH support for logstash kafka output for azure eventhub kafka endpoint

**URL:** https://discuss.elastic.co/t/oauth-support-for-logstash-kafka-output-for-azure-eventhub-kafka-endpoint/374773
**Category:** Logstash
**Created:** [February 19, 2025, 1:57pm UTC](https://discuss.elastic.co/t/oauth-support-for-logstash-kafka-output-for-azure-eventhub-kafka-endpoint/374773 "2025-02-19T13:57:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![PARAS\_PAUL1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paras_paul1/32/130596_2.png) [@PARAS\_PAUL1](https://discuss.elastic.co/u/PARAS_PAUL1)
#### Post date: [February 19, 2025, 1:57pm UTC](https://discuss.elastic.co/t/oauth-support-for-logstash-kafka-output-for-azure-eventhub-kafka-endpoint/374773/1 "2025-02-19T13:57:55Z")

</div>

Hi All,

I'm trying to push events to Azure Eventhub kafka endpoint. I'm able to successfully connect and publish to the topic when I use SASL\_SSL.  
But I want to use OAUTH. As per the microsoft documentation [[https://learn.microsoft.com/en-us/azure/event-hubs/azure-event-hubs-apache-kafka-overview](https://learn.microsoft.com/en-us/azure/event-hubs/azure-event-hubs-apache-kafka-overview)] we can use oauth like this:

```auto
bootstrap.servers=NAMESPACENAME.servicebus.windows.net:9093
security.protocol=SASL_SSL
sasl.mechanism=OAUTHBEARER
sasl.jaas.config=org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule required;
sasl.login.callback.handler.class=CustomAuthenticateCallbackHandler

```

Is OAUTHBEARER sasl mechanism supported by logstash kafka output?

Thank you  
Paras Paul
