lib/eris/dictionary/cee.pm

filter: Statementstmt 59.0% 13 / 22 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 48.4% 16 / 33 CC 4 SCAR 24.7
CC
4
Cov
46%
hash
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 11.9
« lib/eris/dictionary/eris.pm ↑ Summary lib/eris/role/dictionary/hash.pm »
1 package eris::dictionary::cee;
2 # ABSTRACT: Contains fields in the Common Event Expression syntax
3  
4 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use JSON::MaybeXS;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 with qw(
8 eris::role::dictionary::hash
9 );
10  
11 1 our $VERSION = '0.008'; # VERSION
12  
13  
14 1 my $_hash=undef;
15 sub hash {
16 0 ▶ my $self = shift;
Subroutine hash: not called CC=4 SCAR=30.0
Pod undocumented
17 0 ▶ return $_hash if defined $_hash;
Branch: 1 branch
BranchTrueFalseTotal
if defined $_hash 0 0 0
18 0 my %data;
19 0 ▶ while(<DATA>) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = readline DATA)) 0 0 0
20 0 chomp;
21 0 my ($field,$def) = $self->expand_line($_);
22 0 ▶ next unless $field;
Branch: 1 branch
BranchTrueFalseTotal
unless $field 0 0 0
23 0 $data{$field} = $def;
24 }
25 0 $_hash = \%data;
26 }
27 1 1;
28  
29 =pod
30  
31 =encoding UTF-8
32  
33 =head1 NAME
34  
35 eris::dictionary::cee - Contains fields in the Common Event Expression syntax
36  
37 =head1 VERSION
38  
39 version 0.008
40  
41 =head1 SYNOPSIS
42  
43 This dictionary contains all the fields as specified by the "Common Event Expression" format.
44  
45 =head1 SEE ALSO
46  
47 L<eris::dictionary>, L<eris::role::dictionary>
48  
49 =for Pod::Coverage hash
50  
51 =head1 AUTHOR
52  
53 Brad Lhotsky <brad@divisionbyzero.net>
54  
55 =head1 COPYRIGHT AND LICENSE
56  
57 This software is Copyright (c) 2015 by Brad Lhotsky.
58  
59 This is free software, licensed under:
60  
61 The (three-clause) BSD License
62  
63 =cut
64  
65 __DATA__
66 acct Account Username
67 acct_domain Account Domain
68 acct_fullname Account Fullname
69 acct_id Account User ID
70 boot_id Producer Boot ID
71 dev Device Name
72 dev_links Device Node Links
73 dev_node Device Node
74 driver System Kernel Driver Name
75 dst Destination Hostname
76 { "name": "dst_ip", "type": "ip", "description": "Destination IP Address" }
77 dst_mac Destination MAC Address
78 { "name": "dst_port", "type": "integer", "description": "Destination Port Nummber" }
79 dst_prefix_len Destination IP Address Prefix Length
80 exe Binary process exe path
81 file File Name
82 { "name": "in_bytes", "type": "double", "description": "Inbound (Ingress) Bytes" }
83 { "name": "in_pkts", "type": "double", "description": "Inbound (Ingress) Packet Count" }
84 { "name": "out_bytes", "type": "double", "description": "Outbound (Egress) Bytes" }
85 { "name": "out_pkts", "type": "double", "description": "Outbound (Egress) Packet Count" }
86 { "name": "p_ip", "type": "ip", "description": "Producer IP address" }
87 p_mac Producer MAC address
88 proc Process Name
89 { "name": "proc_egid", "type": "integer", "description": "Process Effective Group ID" }
90 { "name": "proc_euid", "type": "integer", "description": "Process Effectice User ID" }
91 { "name": "proc_gid", "type": "integer", "description": "Process Group ID" }
92 { "name": "proc_uid", "type": "integer", "description": "Process User ID" }
93 { "name": "proc_id", "type": "integer", "description": "Process ID" }
94 prod Product Name
95 proto_app Network Application Protocol Name
96 { "name": "rcv_time", "type": "date", "description": "Event Record Receive Time" }
97 rec_id Event Record ID
98 { "name": "rec_time", "type": "date", "description": "Event Record Time" }
99 sess User Session ID
100 src Source Hostname
101 { "name": "src_ip", "type": "ip", "description": "Source IP Address" }
102 src_mac Source MAC Address
103 { "name": "src_port", "type": "integer", "description": " Source Port Nummber" }
104 src_prefix_len Source IP Address Prefix Length
105 subsystem System Kernel Subsystem
106 action Primary action taken
107 crit Event Criticality
108 domain Environment or domain
109 id Event ID
110 object Type of object
111 p_app Producing application
112 p_proc Producing process
113 { "name": "p_proc_id", "type": "integer", "description": "Producing Process ID" }
114 p_sys Producing system
115 pri Priority of the Event
116 schema Schema covered by event
117 schema_ver Version of the Schema
118 service Service involved
119 status Result of the action
120 subject type of object initiated
121 tags Freeform tags for the event
122 { "name": "time", "type": "date", "description": "Time of the event" }
« lib/eris/dictionary/eris.pm ↑ Summary lib/eris/role/dictionary/hash.pm »