Skip to content
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

Enable support for Embedded Metric Format #42

Merged
merged 1 commit into from
Jan 11, 2020

Conversation

jaredcnance
Copy link
Contributor

@jaredcnance jaredcnance commented Jan 9, 2020

Issue #, if available: #27

Description of changes:

Enables custom log formats. This will enable Embedded Metrics if you specify a value of json/emf for the log format.

See aws/aws-for-fluent-bit#21 for e2e tests.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -85,6 +85,8 @@ func getConfiguration(ctx unsafe.Pointer, pluginID int) cloudwatch.OutputPluginC
logrus.Infof("[cloudwatch %d] plugin parameter endpoint = '%s'\n", pluginID, config.CWEndpoint)
config.CredsEndpoint = output.FLBPluginConfigKey(ctx, "credentials_endpoint")
logrus.Infof("[cloudwatch %d] plugin parameter credentials_endpoint = %s\n", pluginID, config.CredsEndpoint)
config.LogFormat = output.FLBPluginConfigKey(ctx, "log_format")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there going to be other log formats?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future we may support other log format values either for metrics or field extraction.

Copy link
Contributor

@PettitWesley PettitWesley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@PettitWesley PettitWesley merged commit f07e884 into aws:master Jan 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants