# Integration Oracle Cloud Kafka + Elastic-agent doesn't work

**URL:** <https://discuss.elastic.co/t/integration-oracle-cloud-kafka-elastic-agent-doesnt-work/353155>\
**Category:** Elastic Agent\
**Created:** [February 13, 2024, 10:57am UTC](https://discuss.elastic.co/t/integration-oracle-cloud-kafka-elastic-agent-doesnt-work/353155 "2024-02-13T10:57:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Death](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/death/32/122353_2.png) [@Death](https://discuss.elastic.co/u/Death)\
**Post date:** [February 13, 2024, 10:57am UTC](https://discuss.elastic.co/t/integration-oracle-cloud-kafka-elastic-agent-doesnt-work/353155/1 "2024-02-13T10:57:20Z")

</div>

Good afternoon. At the moment, there was an attempt to connect to collect logs from Oracle cloud Audit logs via Kafka, and everything worked through logstash. Now when I try to use Custom Kafka Integration in elasticsearch I get an error.

Logstash conf

```auto
\`
kafka {
bootstrap_servers =\> "server:9092"
topics =\> \["topic"\]
security_protocol =\> "SASL_SSL"
sasl_mechanism =\> "PLAIN"
jaas_path =\> "{PATH TO CONFIG}"
auto_offset_reset =\> "earliest"
consumer_threads =\> 1
}
}\``

```

JAAS

```auto
`\`# KafkaClient {
org.apache.kafka.common.security.plain.PlainLoginModule required
username="tenant/username/streampool}}"
password="";
};\``

```

It's worked ok.

And when we use this is config for elastic-agent, it doesn't work

I'am use this is username and password and use kafka consumer group "elastic" and get error message

```auto
Error initializing kafka consumer group

kafka: couldn't fetch broker metadata (check that your client and broker are using the same encryption and authentication settings)

```

Also I try used port 9093 and get error Error initializing kafka consumer group

```auto
kafka: client has run out of available brokers to talk to (Is your cluster reachable?

```

---

<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:** [March 12, 2024, 10:57am UTC](https://discuss.elastic.co/t/integration-oracle-cloud-kafka-elastic-agent-doesnt-work/353155/2 "2024-03-12T10:57:37Z")

</div>

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