kaltura / nginx-kafka-log-module

Send Kafka messages from Nginx
BSD 2-Clause "Simplified" License
64 stars 22 forks source link

What does kafka in kafka_log mean ? #11

Closed GaryCarneiro closed 2 years ago

GaryCarneiro commented 2 years ago

I see the example kafka_log kafka:topic body message_id

I understand topic means Kafka topic. But what does string kafka: mean ?

erankor commented 2 years ago

The module supports file output as well - kafka_log file:/path/to/file body. This feature came from the module that was used as the basis for this one. Personally, I don't see any value in file output - you can just use nginx's builtin access_log directive for this.

GaryCarneiro commented 2 years ago

@erankor My question is kafka a short hostname ? Can I write it as kafka_log kafka.server.example.com:kafka_topic_name body message_id ?

erankor commented 2 years ago

no, it's a prefix to differentiate between file & kafka - it must be "kafka:" (like the http:// prefix of urls)

GaryCarneiro commented 2 years ago

Got it. its URI.