August 2017
Beginner to intermediate
284 pages
6h 51m
English
Now, we are going to define the Logstash configuration to consume the Apache logs and store them into Kafka.
Create a logstash.conf file and add the following lines:
input { file { path => "PATH_TO_APACHE_LOG" start_position => "beginning" }}output { kafka { topic_id => "TOPIC_NAME" bootstrap_servers => "KAFKA_IP:KAFKA_PORT" }}
We should change the following parameters in the preceding configuration:
Go to Logstash home directory and execute the following command to start the ...
Read now
Unlock full access