- To start Kafka-ElasticSearch-Kibana with Kafka-Connector run:
- docker-compose -f docker-compose-KEK.yaml up -d
-
Start Fluentd agent (td-agent.conf provided in this repo). Other log collection framework can also be used.
-
Start docker-compose-KEK.yaml.
-
Change /etc/hosts:
-
Create the Kafka-Connector by using Kafka-Connect API (A sample JSON is provided : connector.json).
-
Dump system/code logs in /tmp/logs/ directory.
-
Open Kibana (http://localhost:5601) and configure index pattern for the current topic. After it is configured properly, in the Discover tab of Kibana the logs will be displayed.
- https://docs.fluentd.org/installation/install-by-deb
- td-agent.conf is located at /etc/td-agent/td-agent.conf
- After modification of td-agent.conf file run sudo service td-agent restart.