tail input didnt catch rotated log

999 views
Skip to first unread message

Evgeny Kornev

unread,
Sep 7, 2017, 6:11:52 AM9/7/17
to Fluent-Bit
Hello!
Suddenly fluent-bit (works in kubernetes) lost rotated log file, here is debug output:

[2017/09/05 05:06:46] [debug] [in_tail] rotated: /mnt/phone-1304852214-9xpzx_default_phone-a783b693ec49347de033bb7931b65f4bf0903c609ddb4421ffaeb2b99c37031e.log -> /var/lib/docker/containers/a783b693ec49347de033bb7931b65f4bf0903c609ddb4421ffaeb2b99c37031e/a783b693ec49347de033bb7931b65f4bf0903c609ddb4421ffaeb2b99c37031e-json.log.1

[2017/09/05 05:06:46] [debug] [out_fw] 17 entries tag='kube.mnt.phone-1304852214-9xpzx_default_phone-a783b693ec49347de033bb7931b65f4bf0903c609ddb4421ffaeb2b99c37031e.log' tag_len=122

[2017/09/05 05:06:47] [debug] [dyntag tail.0] 0x7efc79a3f0c0 destroy (tag=kube.mnt.phone-1304852214-9xpzx_default_phone-a783b693ec49347de033bb7931b65f4bf0903c609ddb4421ffaeb2b99c37031e.log)

[2017/09/05 05:06:52] [debug] [in_tail] removed /mnt/phone-1304852214-9xpzx_default_phone-a783b693ec49347de033bb7931b65f4bf0903c609ddb4421ffaeb2b99c37031e.log

It is strange also that new file has access permissions 400, while almost every other is 640.
Other 400 files also were not got by tail module after rotation.
Is the problem in docker by any chance?

Eduardo Silva

unread,
Sep 7, 2017, 7:51:06 PM9/7/17
to Evgeny Kornev, Fluent-Bit
Who is rotating the files? Docker or logrotate tool ?

--
You received this message because you are subscribed to the Google Groups "Fluent-Bit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluent-bit+unsubscribe@googlegroups.com.
To post to this group, send email to fluen...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fluent-bit/aa8143dd-af37-4303-bf20-800feae0e511%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Evgeny Kornev

unread,
Sep 8, 2017, 4:04:39 AM9/8/17
to Fluent-Bit
Eduardo, docker rotates it by file size

пятница, 8 сентября 2017 г., 4:51:06 UTC+5 пользователь Eduardo Silva написал:

Eduardo Silva

unread,
Sep 8, 2017, 10:08:32 AM9/8/17
to Evgeny Kornev, Fluent-Bit
What's the docker log max size defined ? And the average of number of lines per file and per second?

--
You received this message because you are subscribed to the Google Groups "Fluent-Bit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluent-bit+unsubscribe@googlegroups.com.
To post to this group, send email to fluen...@googlegroups.com.

Evgeny Kornev

unread,
Sep 8, 2017, 10:48:00 AM9/8/17
to Fluent-Bit
It's 200mb limit
rotated file has about 1010250 lines and 24,36 lines per second

пятница, 8 сентября 2017 г., 19:08:32 UTC+5 пользователь Eduardo Silva написал:

Eduardo Silva

unread,
Sep 8, 2017, 11:11:15 AM9/8/17
to Evgeny Kornev, Fluent-Bit
thanks for the info.

Now how many containers is Fluent Bit monitoring when that log rotation happens ?

--
You received this message because you are subscribed to the Google Groups "Fluent-Bit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluent-bit+unsubscribe@googlegroups.com.
To post to this group, send email to fluen...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Eduardo Silva
Open Source, Treasure Data
http://www.treasuredata.com/opensource

http://twitter.com/edsiper
  http://www.linkedin.com/in/edsiper

Evgeny Kornev

unread,
Sep 11, 2017, 2:23:01 AM9/11/17
to Fluent-Bit
Eduardo, sorry for delay, there is 43 links in /var/log/containers/ headed to links in /var/log/pods


пятница, 8 сентября 2017 г., 20:11:15 UTC+5 пользователь Eduardo Silva написал:
thanks for the info.

Now how many containers is Fluent Bit monitoring when that log rotation happens ?
Reply all
Reply to author
Forward
0 new messages