Skip to content

Commit

Permalink
out_azure_kusto: fix ingestion message snprintf
Browse files Browse the repository at this point in the history
Signed-off-by: Gershon Papiashvili <[email protected]>
  • Loading branch information
papigers committed Aug 10, 2022
1 parent 161cc2a commit 313db94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/out_azure_kusto/azure_kusto_ingest.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,12 @@ static flb_sds_t create_ingestion_message(struct flb_azure_kusto *ctx, flb_sds_t
"\"%s\", \"TableName\": \"%s\","
"\"AdditionalProperties\": { \"format\": \"multijson\", "
"\"authorizationContext\": "
"\"%s\", \"jsonMappingReference\": \"%s\" }}",
"\"%s\", \"jsonMappingReference\": \"%s\" }}%c",
uuid, blob_uri, payload_size, ctx->database_name,
ctx->table_name, ctx->resources->identity_token,
ctx->ingestion_mapping_reference == NULL
? ""
: ctx->ingestion_mapping_reference);
: ctx->ingestion_mapping_reference, 0);

if (message_len != -1) {
flb_plg_debug(ctx->ins, "created ingestion message:\n%s", message);
Expand Down

0 comments on commit 313db94

Please sign in to comment.