#=========================== Filebeat prospectors =============================
filebeat.prospectors:
- type: stdin
enabled: true
#------------------------------- Kafka output ----------------------------------
output.kafka:
# Boolean flag to enable or disable the output module.
enabled: true
# The list of Kafka broker addresses from where to fetch the cluster metadata.
# The cluster metadata contain the actual Kafka brokers events are published
# to.
hosts: ["localhost:9092"]
# The Kafka topic used for produced events. The setting can be a format string
# using any event field. To set the topic from document type use `%{[type]}`.
topic: beats
# The Kafka event partitioning strategy. Default hashing strategy is `hash`
# using the `output.kafka.key` setting or randomly distributes events if
# `output.kafka.key` is not configured.
partition.hash:
# If enabled, events will only be published to partitions with reachable
# leaders. Default is false.
reachable_only: true
The metric libbeat.pipeline.events.active is a negative number in logs. But according to the code in libbeat/publisher/pipeline/monitoring.go it is a 64 bit unsigned integer. So either it is not shown correctly by logp or it is overflown.
Seeing a negative value might be confusing for users, too.
2017/10/24 20:43:14.501965 metrics.go:39: INFO Non-zero metrics in the last 30s:
beat.memstats.gc_next=1643024
beat.memstats.memory_alloc=-221680
beat.memstats.memory_total=39758080
filebeat.events.active=2762
filebeat.events.added=2762
filebeat.harvester.closed=1
filebeat.harvester.open_files=-1
filebeat.harvester.running=-1
libbeat.output.events.acked=3933
libbeat.output.events.batches=3
libbeat.output.events.total=3933
libbeat.outputs.kafka.bytes_read=629
libbeat.outputs.kafka.bytes_write=58564
libbeat.pipeline.clients=-1
libbeat.pipeline.events.active=-1171 # negative, but it is a uint64
libbeat.pipeline.events.published=2763
libbeat.pipeline.events.total=2762
libbeat.pipeline.queue.acked=3933
Version: 6.0.0-rc2 Operating System: Debian GNU/Linux 9 Beat: Filebeat
Configuration
Failure
After sending all events to Kafka:
The metric
libbeat.pipeline.events.active
is a negative number in logs. But according to the code inlibbeat/publisher/pipeline/monitoring.go
it is a 64 bit unsigned integer. So either it is not shown correctly bylogp
or it is overflown. Seeing a negative value might be confusing for users, too.During shutdown everything seems normal.