-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add log_key to firehose plugin #33
Conversation
@@ -72,12 +72,14 @@ func newFirehoseOutput(ctx unsafe.Pointer, pluginID int) (*firehose.OutputPlugin | |||
logrus.Infof("[firehose %d] plugin parameter time_key = '%s'\n", pluginID, timeKey) | |||
timeKeyFmt := output.FLBPluginConfigKey(ctx, "time_key_format") | |||
logrus.Infof("[firehose %d] plugin parameter time_key_format = '%s'\n", pluginID, timeKeyFmt) | |||
logKey := output.FLBPluginConfigKey(ctx, "log_key") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the README file adding a line which describes the log_key
field.
README.md
Outdated
@@ -22,6 +22,7 @@ Run `make` to build `./bin/firehose.so`. Then use with Fluent Bit: | |||
* `region`: The region which your Firehose delivery stream(s) is/are in. | |||
* `delivery_stream`: The name of the delivery stream that you want log records sent to. | |||
* `data_keys`: By default, the whole log record will be sent to Kinesis. If you specify a key name(s) with this option, then only those keys and values will be sent to Kinesis. For example, if you are using the Fluentd Docker log driver, you can specify `data_keys log` and only the log message will be sent to Kinesis. If you specify multiple keys, they should be comma delimited. | |||
* `log_key`: By default, the whole log record will be sent to Firehose. If you specify a key name with this option, then only the value of that key will be sent to CloudWatch. For example, if you are using the Fluentd Docker log driver, you can specify `log_key log` and only the log message will be sent to Firehose. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"then only the value of that key will be sent to CloudWatch"
I think this should be "then only the value of that key will be sent to Kinesis Firehose"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.