containers-roadmap icon indicating copy to clipboard operation
containers-roadmap copied to clipboard

[EKS][Fargate] [request]: Multi-line logging support with Fluent Bit

Open SaloniSonpal opened this issue 3 years ago • 20 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Tell us about your request I want to have multi-line logging supported with the built-in Fluent Bit logging on EKS/Fargate.

Which service(s) is this request for? This could be Fargate, ECS, EKS

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? A way to see multi-line logs in CloudWatch or other destinations.

Additional context I see this issue is open on the AWS for Fluent Bit distro side https://github.com/aws/aws-for-fluent-bit/issues/100

SaloniSonpal avatar Apr 01 '21 20:04 SaloniSonpal

Upstream has made progress on improved/generic multiline support: https://github.com/fluent/fluent-bit/issues/337#issuecomment-882953961

PettitWesley avatar Jul 20 '21 17:07 PettitWesley

Now we have aws-for-fluent-bit supports it from 2.18.0: https://github.com/aws/aws-for-fluent-bit/releases/tag/v2.18.0.

zhonghui12 avatar Aug 04 '21 21:08 zhonghui12

Worth mentioning that this probably should also include multi-line logs split up by the container runtime due to size (related: https://github.com/aws/aws-for-fluent-bit/issues/25)

f0o avatar Aug 19 '21 08:08 f0o

Is https://github.com/aws/aws-for-fluent-bit/releases/tag/v2.18.0 available with EKS Fargate (Firelens) yet?

liemng avatar Aug 27 '21 21:08 liemng

@liemng you can use any Fluent Bit image with FireLens. FireLens is just a way to deploy Fluent Bit in ECS.

https://aws.amazon.com/blogs/containers/under-the-hood-firelens-for-amazon-ecs-tasks/

PettitWesley avatar Oct 11 '21 20:10 PettitWesley

Also, for everyone, please note that we are tracking multiple bugs with the new multiline feature release here: https://github.com/aws/aws-for-fluent-bit/issues/100

So while you can use 2.18.0 with FireLens, the multiline feature doesn't actually work. I am working on investigating/root cause/fix. However, its looking like that will take a while. Follow the issue for updates.

@liemng

PettitWesley avatar Oct 11 '21 20:10 PettitWesley

Specifically, see my comments starting here: https://github.com/aws/aws-for-fluent-bit/issues/100#issuecomment-939577025

PettitWesley avatar Oct 11 '21 20:10 PettitWesley

is there any update when will this be available?

selagnsknox avatar Jan 16 '23 11:01 selagnsknox

EKS Fargate has added support for builtin multiline parsers and it is enabled by default. https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/multiline-parsing#built-in-multiline-parsers

Configurable multiline parsers are not supported yet.

rsumukha avatar Jan 18 '23 19:01 rsumukha

@yixinz19 please elaborate, what issue are you facing, what is your config map.

PettitWesley avatar May 01 '23 21:05 PettitWesley

this ticket was moved to "Just Shipped" on Jan 19. Does that mean it is available in current EKS on Fargate? Is there any configuration that I need to do to activate this feature? I followed this page to configure the configMap, it doesn't mention anything about multi-line logs https://docs.aws.amazon.com/eks/latest/userguide/fargate-logging.html

tri-bao avatar May 04 '23 07:05 tri-bao

@tri-bao @hou-yimin EKS has rolled back this launch, so we have re-opened this issue and moved it to "Coming Soon". Apologies for the inconvenience here!!

PettitWesley avatar May 10 '23 18:05 PettitWesley

@PettitWesley is there an ETA for this issue?

rnishtala-sumo avatar May 17 '23 13:05 rnishtala-sumo

Any update on this? we need configurable multiline feature in EKS

sameeraksc avatar Sep 01 '23 02:09 sameeraksc

Was there a progress on this please

DesAWSume avatar Sep 18 '23 22:09 DesAWSume

hi @PettitWesley I saw this eks-charts release note https://github.com/aws/eks-charts/releases/tag/v0.0.152 mention aws-for-fluent-bit: support cri multiline parsing Does that means the feature is available? On which EKS version? Thanks.

tri-bao avatar Oct 25 '23 01:10 tri-bao

@tri-bao The EKS helm chart is different than the EKS Fargate built-in logging hidden container: https://docs.aws.amazon.com/eks/latest/userguide/fargate-logging.html

The latest version of the helm chart supports multiline logging for all EKS EC2 versions.

PettitWesley avatar Oct 26 '23 16:10 PettitWesley

@PettitWesley : When will this INPUT option be available for EKS Fargate? As per this page,

The main sections included in a typical Fluent Conf are Service, Input, Filter, and Output. The Fargate log router however, only accepts:

The Filter and Output sections.

A Parser section.

If you provide any other sections, they will be rejected.

dev-travelex avatar Apr 09 '24 11:04 dev-travelex

@PettitWesley There is also a need on our side to be able to set a custom configuration for the INPUT section in EKS Fargate.

Any update on this?

florian-popchef avatar Apr 11 '24 08:04 florian-popchef

Hi Team,

This is a key feature for our implementation and I'm, really interested in knowing if there is any date when you are aiming to release this feature.

Thanks and regards.

javierpdm8 avatar Apr 25 '24 14:04 javierpdm8