Hi everyone,
I'm trying to integrate Traccar with an external Kafka service and would like some guidance on the correct configuration.
The Kafka cluster is hosted on Aiven and requires SASL_SSL authentication. Below is a sample of the connection details (example credentials):
Host: kafka-xxxx-info.g.aivencloud.com
Port: 25416
Username: avnadmin
Password: <password>
Security Protocol: SASL_SSL
Mechanism: PLAIN
The goal is to forward device position updates from Traccar to a Kafka topic, for example: "positions"
Could someone clarify:
What configuration entries need to be added to traccar.xml to enable Kafka forwarding?
Does Traccar support forwarding to external Kafka services that require SASL_SSL authentication?
Are there any additional TLS or client settings required when connecting to managed Kafka providers like Aiven?
Any examples of a working configuration would be helpful.
Thanks in advance!
Hello, good day.
You can go to the Traccar repository on GitHub and consult the source code for position forwarding to understand how it works. You can also check config/keys to obtain the necessary configuration attributes for your traccar.xml file.
If I remember correctly, I've seen Kafka compatibility in the configuration keys, so you should be able to achieve what you need.
Regards.
Hi everyone,
I'm trying to integrate Traccar with an external Kafka service and would like some guidance on the correct configuration.
The Kafka cluster is hosted on Aiven and requires SASL_SSL authentication. Below is a sample of the connection details (example credentials):
Host: kafka-xxxx-info.g.aivencloud.com
Port: 25416
Username: avnadmin
Password: <password>
Security Protocol: SASL_SSL
Mechanism: PLAIN
The goal is to forward device position updates from Traccar to a Kafka topic, for example: "positions"
Could someone clarify:
What configuration entries need to be added to traccar.xml to enable Kafka forwarding?
Does Traccar support forwarding to external Kafka services that require SASL_SSL authentication?
Are there any additional TLS or client settings required when connecting to managed Kafka providers like Aiven?
Any examples of a working configuration would be helpful.
Thanks in advance!