line |
true |
false |
branch |
128
|
0 |
0 |
unless (defined $opts{'dsn'})
|
132
|
0 |
0 |
unless (defined $opts{'user'})
|
136
|
0 |
0 |
unless (defined $opts{'sagan'})
|
140
|
0 |
0 |
unless (defined $opts{'suricata'})
|
144
|
0 |
0 |
unless (defined $opts{'sid_ignore'})
|
149
|
0 |
0 |
unless (defined $opts{'class_ignore'})
|
154
|
0 |
0 |
unless (defined $opts{'suricata_sid_ignore'})
|
159
|
0 |
0 |
unless (defined $opts{'suricata_class_ignore'})
|
164
|
0 |
0 |
unless (defined $opts{'sagan_sid_ignore'})
|
169
|
0 |
0 |
unless (defined $opts{'sagan_class_ignore'})
|
302
|
0 |
0 |
if ($@)
|
313
|
0 |
0 |
unless (defined $item->{'instance'})
|
318
|
0 |
0 |
unless (defined $item->{'type'})
|
322
|
0 |
0 |
unless (defined $item->{'eve'})
|
339
|
0 |
0 |
if ($@)
|
345
|
0 |
0 |
if ($@)
|
353
|
0 |
0 |
if (defined $json and defined $json->{'event_type'} and $json->{'event_type'} eq "alert")
|
366
|
0 |
0 |
if ($_[3]{'type'} eq 'suricata') { }
|
|
0 |
0 |
elsif ($_[3]{'type'} eq 'sagan') { }
|
414
|
0 |
0 |
if ($@)
|
524
|
0 |
0 |
unless (defined $opts{'go_back_minutes'})
|
537
|
0 |
0 |
if (defined $self->{'suricata_sid_ignore'}[0])
|
543
|
0 |
0 |
if (defined $self->{'sagan_sid_ignore'}[0])
|
549
|
0 |
0 |
if (defined $self->{'sagan_class_ignore'}[0])
|
552
|
0 |
0 |
if (defined $self->{'rev_class_map'}{$item}) { }
|
|
0 |
0 |
elsif (defined $self->{'lc_rev_class_map'}{$item}) { }
|
564
|
0 |
0 |
if (defined $self->{'suricata_class_ignore'}[0])
|
567
|
0 |
0 |
if (defined $self->{'rev_class_map'}{$item}) { }
|
|
0 |
0 |
elsif (defined $self->{'lc_rev_class_map'}{$item}) { }
|
606
|
0 |
0 |
if ($@)
|
623
|
0 |
0 |
if ($self->{'debug'})
|
646
|
0 |
0 |
if ($self->{'debug'})
|
657
|
0 |
0 |
if ($@)
|
688
|
0 |
0 |
unless (defined $class)
|
692
|
0 |
0 |
if (defined $self->{'lc_class_map'}{lc $class})
|
712
|
0 |
0 |
unless (defined $class)
|
716
|
0 |
0 |
if (defined $self->{'snmp_class_map'}{lc $class})
|
840
|
0 |
0 |
if (not defined $opts{'table'}) { }
|
844
|
0 |
0 |
if ($opts{'table'} ne "suricata" and $opts{'table'} ne "sagan")
|
849
|
0 |
0 |
if (not defined $opts{'go_back_minutes'}) { }
|
853
|
0 |
0 |
unless ($opts{'go_back_minutes'} =~ /^[0-9]+$/)
|
858
|
0 |
0 |
if (defined $opts{'limit'} and not $opts{'limit'} =~ /^[0-9]+$/)
|
862
|
0 |
0 |
if (defined $opts{'offset'} and not $opts{'offset'} =~ /^[0-9]+$/)
|
866
|
0 |
0 |
if (defined $opts{'order_by'} and not $opts{'order_by'} =~ /^[\_a-zA-Z]+$/)
|
870
|
0 |
0 |
if (defined $opts{'order_dir'} and $opts{'order_dir'} ne 'ASC' and $opts{'order_dir'} ne 'DESC') { }
|
|
0 |
0 |
elsif (not defined $opts{'order_dir'}) { }
|
877
|
0 |
0 |
unless (defined $opts{'order_by'})
|
882
|
0 |
0 |
if ($opts{'table'} eq "sagan")
|
899
|
0 |
0 |
if (defined $opts{$var_to_check} and $opts{$var_to_check} =~ /[\\\']/)
|
918
|
0 |
0 |
if ($item eq $opts{'order_by'})
|
923
|
0 |
0 |
unless ($valid_order_by)
|
936
|
0 |
0 |
if (defined $opts{'no_time'} and $opts{'no_time'}) { }
|
951
|
0 |
0 |
if (defined $opts{$item})
|
963
|
0 |
0 |
if (defined $opts{$item})
|
973
|
0 |
0 |
if ($arg =~ /^[0-9]+$/) { }
|
|
0 |
0 |
elsif ($arg =~ /^\<\=[0-9]+$/) { }
|
|
0 |
0 |
elsif ($arg =~ /^\<[0-9]+$/) { }
|
|
0 |
0 |
elsif ($arg =~ /^\>\=[0-9]+$/) { }
|
|
0 |
0 |
elsif ($arg =~ /^\>[0-9]+$/) { }
|
|
0 |
0 |
elsif ($arg =~ /^\![0-9]+$/) { }
|
|
0 |
0 |
elsif ($arg =~ /^$/) { }
|
1016
|
0 |
0 |
if (defined $opts{$item})
|
1017
|
0 |
0 |
if (defined $opts{$item . '_like'} and $opts{$item . '_like'}) { }
|
1018
|
0 |
0 |
if (defined $opts{$item} . '_not' and not $opts{$item . '_not'}) { }
|
1026
|
0 |
0 |
if (defined $opts{$item} . '_not' and not $opts{$item . '_not'}) { }
|
1040
|
0 |
0 |
if (defined $opts{'ip'})
|
1044
|
0 |
0 |
if (defined $opts{'port'})
|
1052
|
0 |
0 |
if (defined $opts{'order_by'})
|
1056
|
0 |
0 |
if (defined $opts{'linit'})
|
1060
|
0 |
0 |
if (defined $opts{'offset'})
|
1069
|
0 |
0 |
if ($self->{'debug'})
|