Jan_31_2024-Dev

This commit is contained in:
Ned Wright
2024-01-31 17:34:53 +00:00
parent 752a5785f0
commit 6d67818a94
376 changed files with 8101 additions and 7064 deletions

15
core/logging/fog_stream.cc Executable file → Normal file
View File

@@ -38,7 +38,7 @@ FogStream::sendLog(const Report &log)
ctx.registerValue<bool>("Obfuscate log field", true);
LogRest rest(log);
i_msg->sendObjectWithPersistence(rest, I_Messaging::Method::POST, fog_log_uri, "", true, MessageTypeTag::LOG);
i_msg->sendAsyncMessage(HTTPMethod::POST, fog_log_uri, rest, MessageCategory::LOG);
}
void
@@ -49,16 +49,13 @@ FogStream::sendLog(const LogBulkRest &logs, bool persistence_only)
auto fog_log_uri = getConfigurationWithDefault<string>("/api/v1/agents/events/bulk", "Logging", "Fog Log URI");
if (!persistence_only) {
i_msg->sendObjectWithPersistence(logs, I_Messaging::Method::POST, fog_log_uri, "", true, MessageTypeTag::LOG);
i_msg->sendAsyncMessage(HTTPMethod::POST, fog_log_uri, logs, MessageCategory::LOG);
} else {
i_msg->sendObjectWithPersistence(
logs,
I_Messaging::Method::POST,
i_msg->sendAsyncMessage(
HTTPMethod::POST,
fog_log_uri,
"",
false,
MessageTypeTag::LOG,
true
logs,
MessageCategory::LOG
);
}
}