Closed barrachri closed 6 years ago
Looks like related to buffering in docker maybe ?, note that your flush time is 5 seconds, try to set to 1 and see if the message is there.
tip: use "echo -n message" to avoid \r mess up the stdout
I don't have the same issue if I use the http for example (always with docker), I'll try to check with 1 sec.
Hi,
I am facing the same issue with docker image even with 1 sec.
This is my config
[SERVICE] Flush 1 Daemon Off Log_Level debug Parsers_File parsers.conf
[INPUT] Name tail Path /tmp/log/access.log Parser java_test
[OUTPUT] Name kafka Match * Brokers kafka-staging:9092 Topics karthik_test
I am getting the below output but new logs are not showing up.
EVENT [2019/06/27 19:29:02] [debug] [task] created task=0x7ff534e3b900 id=0 OK [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (277 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (326 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (335 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (335 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (335 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (330 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (329 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (338 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (333 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (325 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (331 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (325 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (326 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (309 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (335 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (352 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [out_kafka] enqueued message (305 bytes) for topic 'karthik_test' [2019/06/27 19:29:02] [debug] [task] destroy task=0x7ff534e3b900 (task_id=0)
please open a new ticket with full details.
I've built a docker image of fluentbit using the master version (I was interested in testing this feature https://github.com/fluent/fluent-bit/issues/388).
This is my conf
The docker service is running with this command
Now the system seems to work but I have a strange behaviour that it might be related to buffer/flushing configuration.
This the command
and this is the output
as you can see the
echo
is not there, but if I keep sending messages the logs will finally appear: