Hi,
We are using kafka 2.12 and configure the output as below in the filebeat.
filebeat.prospectors:
-
type: log
enabled: false
paths:
- /var/log/*.log
#============================= Filebeat modules ===============================
filebeat.config.modules:
Glob pattern for configuration loading
path: ${path.config}/modules.d/*.yml
Set to true to enable config reloading
reload.enabled: false
#==================== Elasticsearch template setting ==========================
setup.template.settings:
index.number_of_shards: 3
#index.codec: best_compression
#_source.enabled: false
#-------------------------- Kafka Output ----------------------------------
output.kafka:
initial brokers for reading cluster metadata
hosts: ["localhost:9092"]
message topic selection + partitioning
topic: 'logs'
partition.round_robin:
reachable_only: false
required_acks: 1
compression: gzip
max_message_bytes: 1000000
logging:
files:
rotateeverybytes: 10485760 # = 10MB
We have check the logs in the kafka there is no log on it.