Skip to content

InvalidDimensionException when running on ECS Fargate with fluent-bit #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
markkuhn opened this issue Sep 30, 2022 · 2 comments · Fixed by #126
Closed

InvalidDimensionException when running on ECS Fargate with fluent-bit #125

markkuhn opened this issue Sep 30, 2022 · 2 comments · Fixed by #126
Assignees
Labels
bug Something isn't working

Comments

@markkuhn
Copy link
Contributor

An InvalidDimensionException is being thrown when using fluent-bit since getLogGroupName() is returning an empty string:

public String getLogGroupName() {
// FireLens / fluent-bit does not need the log group to be included
// since configuration of the LogGroup is handled by the
// fluent bit config file
if (this.fluentBitEndpoint != null) {
return "";
}

@markkuhn markkuhn added the bug Something isn't working label Sep 30, 2022
@markkuhn markkuhn changed the title InvalidDimensionException when running on ECS Fargate with Firelens InvalidDimensionException when running on ECS Fargate with fluent-bit Sep 30, 2022
@rohitnair
Copy link

Is there an ETA for the fix, or a workaround to avoid this issue?

@markkuhn
Copy link
Contributor Author

markkuhn commented Oct 4, 2022

@rohitnair
A fix is being worked on. I do not have an ETA for you.

For now you can turn off default dimensions by calling resetDimensions(false) before you start setting your own custom dimensions. This will clear all dimensions and stop using default dimensions.
More information on resetDimensions() here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants