mirror of https://github.com/MISP/MISP
new: [internal] New option `Security.ecs_log` to enable ECS logging
parent
31f40c8d43
commit
412ba0f192
|
@ -429,14 +429,16 @@ class Log extends AppModel
|
|||
}
|
||||
|
||||
/**
|
||||
* TODO: Check if ECS is enabled
|
||||
*
|
||||
* @param array $data
|
||||
* @return void
|
||||
* @throws JsonException
|
||||
*/
|
||||
private function sendToEcs(array $data)
|
||||
{
|
||||
if (!Configure::read('Security.ecs_log')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$action = $data['Log']['action'];
|
||||
$type = 'info';
|
||||
if (isset($action)) {
|
||||
|
|
Loading…
Reference in New Issue