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

aws: add debug logs to check batch sizes #5428

Merged
merged 3 commits into from
May 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/out_cloudwatch_logs/cloudwatch_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ int send_log_events(struct flb_cloudwatch *ctx, struct cw_flush *buf,
return -1;
}

flb_plg_debug(ctx->ins, "Sending %d events", i);
flb_plg_debug(ctx->ins, "cloudwatch:PutLogEvents: events=%d, payload=%d bytes", i, offset);
ret = put_log_events(ctx, buf, stream, (size_t) offset);
if (ret < 0) {
flb_plg_error(ctx->ins, "Failed to send log events");
Expand Down
2 changes: 1 addition & 1 deletion plugins/out_kinesis_firehose/firehose_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ static int send_log_events(struct flb_firehose *ctx, struct flush *buf) {
flb_plg_error(ctx->ins, "Could not complete PutRecordBatch payload");
return -1;
}
flb_plg_debug(ctx->ins, "Sending %d records", i);
flb_plg_debug(ctx->ins, "firehose:PutRecordBatch: events=%d, payload=%d bytes", i, offset);
ret = put_record_batch(ctx, buf, (size_t) offset, i);
if (ret < 0) {
flb_plg_error(ctx->ins, "Failed to send log records");
Expand Down
2 changes: 1 addition & 1 deletion plugins/out_kinesis_streams/kinesis_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ static int send_log_events(struct flb_kinesis *ctx, struct flush *buf) {
flb_plg_error(ctx->ins, "Could not complete PutRecords payload");
return -1;
}
flb_plg_debug(ctx->ins, "Sending %d records", i);
flb_plg_debug(ctx->ins, "kinesis:PutRecords: events=%d, payload=%d bytes", i, offset);
ret = put_records(ctx, buf, (size_t) offset, i);
if (ret < 0) {
flb_plg_error(ctx->ins, "Failed to send log records");
Expand Down