Skip to content

cray2015/kafka_logstash_testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Testing

  • Using multiple Kafka clusters for single logstash.
  • Go to the console of the kafka container and refer the producer commands below and issue the below message, you can change the message.

Message

  {"message": "This is a \"sec-api"}

Kafka producer

kafka-console-producer --topic logstash_logs --bootstrap-server kafka:9092

kafka-console-producer --topic api --bootstrap-server kafka:9092

kafka-console-producer --topic batch --bootstrap-server kafka:9092

Kafka-sec producer

kafka-console-producer --topic sec-logstash --bootstrap-server kafka-sec:9092

kafka-console-producer --topic sec-api --bootstrap-server kafka-sec:9092

  If you push any message in the above topic this should go into "sec-existing.log" file

kafka-console-producer --topic sec-batch --bootstrap-server kafka-sec:9092

Check logs

  In logstash container go to /usr/share/logstash/ and look for topic name log files.

About

docker-compose setup for kafka and logstash setup tracking multiple topics and brokers.

Topics

Resources

Stars

Watchers

Forks