filebeat timestamp in the log message is 2019-05-24T17:16:10.063Z;
Log timestamp is: I0524 16:32:40.761113.
therefore, it takes filebeat more than 30 mins to tail a production C++ logs and send them to kafka,
I looked at CPU consumption, it is in 90%+, however, it is not 99% and the from filebeat log, filebeat.events.done can keep up with filebeat.events.added, it does not explain why there is huge delay in sending the log files out to Kafka.
Here are some CPU/IO stats during that time interval, i also copied the filebeats logs at the end, please let me know if anything looks suspicious. TIA for any pointers.
2019/05/24 16:32:02.643 16:31:42 UID PID %usr %system %guest %CPU CPU Command
2019/05/24 16:32:02.643 16:32:02 2147483006 6303 94.35 0.65 0.00 95.00 50 bin/filebeat -path.config /export/content/lid/apps/i
2019/05/24 16:32:02.645 16:31:42 UID PID kB_rd/s kB_wr/s kB_ccwr/s Command
2019/05/24 16:32:02.645 16:32:02 2147483006 6303 0.00 39.60 0.00 bin/filebeat -path.config /export/content/lid/apps/i
2019/05/24 16:33:02.641 16:32:42 UID PID %usr %system %guest %CPU CPU Command
2019/05/24 16:33:02.641 16:33:02 2147483006 6303 90.15 0.70 0.00 90.85 50 bin/filebeat -path.config /export/content/lid/apps/i
2019/05/24 16:33:02.642 16:32:42 UID PID kB_rd/s kB_wr/s kB_ccwr/s Command
2019/05/24 16:33:02.642 16:33:02 2147483006 6303 0.00 36.00 0.00 bin/filebeat -path.config /export/content/lid/apps/i
2019/05/24 16:34:02.641 16:33:42 UID PID %usr %system %guest %CPU CPU Command
2019/05/24 16:34:02.641 16:34:02 2147483006 6303 94.35 0.65 0.00 95.00 50 bin/filebeat -path.config /export/content/lid/apps/i
2019/05/24 16:34:02.643 16:33:42 UID PID kB_rd/s kB_wr/s kB_ccwr/s Command
2019/05/24 16:34:02.643 16:34:02 2147483006 6303 0.00 37.20 0.00 bin/filebeat -path.config /export/content/lid/apps/i
2019/05/24 16:34:02.643 16:33:42 UID PID kB_rd/s kB_wr/s kB_ccwr/s Command
2019/05/24 16:34:02.643 16:34:02 2147483006 6303 0.00 37.20 0.00 bin/filebeat -path.config /export/content/lid/apps/i
The following are filebeat logs from the time interval:
2019-05-24T16:31:35Z INFO Non-zero metrics in the last 30s: beat.info.uptime.ms=29842 beat.memstats.gc_next=101127008 beat.memstats.memory_alloc=62520888 beat.memstats.memory_total=29277883633496 filebeat.events.active=-2049 filebeat.events.added=200703 filebeat.events.done=202752 filebeat.harvester.open_files=46 filebeat.harvester.running=46 libbeat.config.module.running=0 libbeat.output.events.acked=200704 libbeat.output.events.batches=98 libbeat.output.events.total=200704 libbeat.outputs.kafka.bytes_read=150431 libbeat.outputs.kafka.bytes_write=16495561 libbeat.pipeline.clients=1 libbeat.pipeline.events.active=4117 libbeat.pipeline.events.published=200704 libbeat.pipeline.events.total=200704 libbeat.pipeline.queue.acked=200704 registrar.states.current=50 registrar.states.update=201042 registrar.writes=92
2019-05-24T16:32:05Z INFO Non-zero metrics in the last 30s: beat.info.uptime.ms=30076 beat.memstats.gc_next=97412208 beat.memstats.memory_alloc=71622560 beat.memstats.memory_total=29284614364288 filebeat.events.active=1 filebeat.events.added=200705 filebeat.events.done=200704 filebeat.harvester.open_files=46 filebeat.harvester.running=46 libbeat.config.module.running=0 libbeat.output.events.acked=200704 libbeat.output.events.batches=98 libbeat.output.events.total=200704 libbeat.outputs.kafka.bytes_read=155717 libbeat.outputs.kafka.bytes_write=16677835 libbeat.pipeline.clients=1 libbeat.pipeline.events.active=4117 libbeat.pipeline.events.published=200704 libbeat.pipeline.events.total=200704 libbeat.pipeline.queue.acked=200704 registrar.states.current=50 registrar.states.update=200704 registrar.writes=97
2019-05-24T16:32:35Z INFO Non-zero metrics in the last 30s: beat.info.uptime.ms=30041 beat.memstats.gc_next=106706544 beat.memstats.memory_alloc=83175416 beat.memstats.memory_total=29291353320392 filebeat.events.active=-1 filebeat.events.added=196607 filebeat.events.done=196608 filebeat.harvester.open_files=46 filebeat.harvester.running=46 libbeat.config.module.running=0 libbeat.output.events.acked=196608 libbeat.output.events.batches=96 libbeat.output.events.total=196608 libbeat.outputs.kafka.bytes_read=158270 libbeat.outputs.kafka.bytes_write=16390478 libbeat.pipeline.clients=1 libbeat.pipeline.events.active=4117 libbeat.pipeline.events.published=196608 libbeat.pipeline.events.total=196608 libbeat.pipeline.queue.acked=196608 registrar.states.current=50 registrar.states.update=196608 registrar.writes=95
2019-05-24T16:33:05Z INFO Non-zero metrics in the last 30s: beat.info.uptime.ms=29873 beat.memstats.gc_next=98937296 beat.memstats.memory_alloc=80192600 beat.memstats.memory_total=29297836014280 filebeat.events.active=-2009 filebeat.events.added=194599 filebeat.events.done=196608 filebeat.harvester.open_files=46 filebeat.harvester.running=46 libbeat.config.module.running=0 libbeat.output.events.acked=196608 libbeat.output.events.active=-2048 libbeat.output.events.batches=95 libbeat.output.events.total=194560 libbeat.outputs.kafka.bytes_read=149414 libbeat.outputs.kafka.bytes_write=16184406 libbeat.pipeline.clients=1 libbeat.pipeline.events.active=2111 libbeat.pipeline.events.published=194603 libbeat.pipeline.events.total=194602 libbeat.pipeline.queue.acked=196608 registrar.states.current=50 registrar.states.update=196608 registrar.writes=92
2019-05-24T16:33:35Z INFO Non-zero metrics in the last 30s: beat.info.uptime.ms=30029 beat.memstats.gc_next=105970720 beat.memstats.memory_alloc=89646640 beat.memstats.memory_total=29304542031160 filebeat.events.active=2582 filebeat.events.added=201238 filebeat.events.done=198656 filebeat.harvester.open_files=46 filebeat.harvester.running=46 libbeat.config.module.running=0 libbeat.output.events.acked=200704 libbeat.output.events.batches=98 libbeat.output.events.total=200704 libbeat.outputs.kafka.bytes_read=155346 libbeat.outputs.kafka.bytes_write=16654787 libbeat.pipeline.clients=1 libbeat.pipeline.events.active=2642 libbeat.pipeline.events.published=201234 libbeat.pipeline.events.total=201235 libbeat.pipeline.queue.acked=200704 registrar.states.current=50 registrar.states.update=200704 registrar.writes=91