mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-20 09:29:42 +00:00
fix(userspace/falco): use given priority for msg
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
parent
bc9a2f38e1
commit
81de65eb69
@ -196,7 +196,7 @@ void falco_outputs::handle_msg(uint64_t now,
|
|||||||
iso8601evttime += time_ns;
|
iso8601evttime += time_ns;
|
||||||
|
|
||||||
jmsg["output"] = msg;
|
jmsg["output"] = msg;
|
||||||
jmsg["priority"] = "Critical";
|
jmsg["priority"] = falco_common::priority_names[priority];
|
||||||
jmsg["rule"] = rule;
|
jmsg["rule"] = rule;
|
||||||
jmsg["time"] = iso8601evttime;
|
jmsg["time"] = iso8601evttime;
|
||||||
jmsg["output_fields"] = output_fields;
|
jmsg["output_fields"] = output_fields;
|
||||||
@ -209,7 +209,7 @@ void falco_outputs::handle_msg(uint64_t now,
|
|||||||
bool first = true;
|
bool first = true;
|
||||||
|
|
||||||
sinsp_utils::ts_to_string(now, ×tr, false, true);
|
sinsp_utils::ts_to_string(now, ×tr, false, true);
|
||||||
full_msg = timestr + ": " + falco_common::priority_names[LOG_CRIT] + " " + msg + " (";
|
full_msg = timestr + ": " + falco_common::priority_names[priority] + " " + msg + " (";
|
||||||
for(auto &pair : output_fields)
|
for(auto &pair : output_fields)
|
||||||
{
|
{
|
||||||
if(first)
|
if(first)
|
||||||
|
Loading…
Reference in New Issue
Block a user