mirror of
https://github.com/openappsec/openappsec.git
synced 2025-11-16 01:12:18 +03:00
Jan_31_2024-Dev
This commit is contained in:
15
core/logging/fog_stream.cc
Executable file → Normal file
15
core/logging/fog_stream.cc
Executable file → Normal 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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user