Management framework: log additional node events

This commit is contained in:
Christian Kreibich 2022-08-09 15:12:10 -07:00
parent 63291ba2df
commit 7d4dd22aba
2 changed files with 5 additions and 0 deletions

View file

@ -262,6 +262,8 @@ event Management::Agent::Runtime::trigger_log_archival(run_archival: bool)
event Management::Supervisor::API::notify_node_exit(node: string, outputs: Management::NodeOutputs)
{
Management::Log::info(fmt("rx Management::Supervisor::API::notify_node_exit %s", node));
if ( node in g_nodes )
g_outputs[node] = outputs;
}

View file

@ -102,7 +102,10 @@ event Broker::peer_added(peer: Broker::EndpointInfo, msg: string)
# If this is the agent peering, notify it that we're ready
if ( peer$network$address == epi$network$address &&
peer$network$bound_port == epi$network$bound_port )
{
Management::Log::info(fmt("tx Management::Node::API::notify_node_hello %s", Cluster::node));
Broker::publish(node_topic, Management::Node::API::notify_node_hello, Cluster::node);
}
}
event zeek_init()