This python package is developed for Python 3.5 and above
The purpose is to connect the ELK log system through the kafka message queue, and send the python log information to the ELK platform.
$ pip install python-elk-kafka
Configure logger information via logging.conf / config_dict.py
The location of the exsample configuration:
config_example/logging.conf or config_example/config_dict.py
Elasticsearch is an open source distributed search engine that provides three functions of collecting, analyzing and storing data.
Logstash mainly used as a tool for collecting, analyzing, and filtering logs.
Kibana is a log-analytical web interface for Logstash and ElasticSearch that helps aggregate, analyze, and search for important data logs
Message queuing mechanism:
-
Logstash Agent passing the logs to Kafka;
-
Kafka sending the messages in the queue to the specified server where the Logstash is installed;
-
After filtering and analyzing, the data will pass to the Elasticsearch;
-
Finally, Kibana presenting the logs and data to the users.
The Kafka message queue was uesd, so even if the remote Logstash server stops running due to a failure, the data will be stored first, thus avoiding data loss.
if there have any questions, you can issue or pull request here