You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/contrib/file_processor/Action/Log.pm

15 lines
260 B
Perl

package Action::Log;
use Moose;
extends 'Processor';
has 'data' => (is => 'rw', isa => 'HashRef', required => 1);
sub name { 'log' }
sub description { 'Log to file' }
sub perform {
my $self = shift;
$self->log->info($self->json->encode($self->data));
}
1