| 1 | package eris::dictionary::eris; | ||||||||||
| 2 | # ABSTRACT: Contains fields eris adds to events | ||||||||||
| 3 | |||||||||||
| 4 | 1 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use namespace::autoclean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | with qw( | |||||||||
| 7 | eris::role::dictionary::hash | ||||||||||
| 8 | ); | ||||||||||
| 9 | |||||||||||
| 10 | 1 | our $VERSION = '0.008'; # VERSION | |||||||||
| 11 | |||||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub _build_priority { 100; } | ||||||||
|
Subroutine
_build_priority: not called CC=1 SCAR=6.9
| |||||||||||
| 14 | |||||||||||
| 15 | |||||||||||
| 16 | 1 | my $_hash=undef; | |||||||||
| 17 | sub hash { | ||||||||||
| 18 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
hash: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||
| 19 | 0 | ▶ | return $_hash if defined $_hash; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 0 | my %data; | |||||||||
| 21 | 0 | ▶ | while(<DATA>) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | 0 | chomp; | |||||||||
| 23 | 0 | my ($field,$def) = $self->expand_line($_); | |||||||||
| 24 | 0 | ▶ | next unless $field; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | 0 | $data{$field} = $def; | |||||||||
| 26 | } | ||||||||||
| 27 | 0 | $_hash = \%data; | |||||||||
| 28 | } | ||||||||||
| 29 | |||||||||||
| 30 | |||||||||||
| 31 | 1 | 1; | |||||||||
| 32 | |||||||||||
| 33 | =pod | ||||||||||
| 34 | |||||||||||
| 35 | =encoding UTF-8 | ||||||||||
| 36 | |||||||||||
| 37 | =head1 NAME | ||||||||||
| 38 | |||||||||||
| 39 | eris::dictionary::eris - Contains fields eris adds to events | ||||||||||
| 40 | |||||||||||
| 41 | =head1 VERSION | ||||||||||
| 42 | |||||||||||
| 43 | version 0.008 | ||||||||||
| 44 | |||||||||||
| 45 | =head1 SYNOPSIS | ||||||||||
| 46 | |||||||||||
| 47 | This dictionary adds fields the L<eris::log::contextualizer> may add to a document. | ||||||||||
| 48 | |||||||||||
| 49 | =head1 ATTRIBUTES | ||||||||||
| 50 | |||||||||||
| 51 | =head2 priority | ||||||||||
| 52 | |||||||||||
| 53 | Defaults to 100, or near the end | ||||||||||
| 54 | |||||||||||
| 55 | =for Pod::Coverage hash | ||||||||||
| 56 | |||||||||||
| 57 | =head1 SEE ALSO | ||||||||||
| 58 | |||||||||||
| 59 | L<eris::dictionary>, L<eris::role::dictionary> | ||||||||||
| 60 | |||||||||||
| 61 | =head1 AUTHOR | ||||||||||
| 62 | |||||||||||
| 63 | Brad Lhotsky <brad@divisionbyzero.net> | ||||||||||
| 64 | |||||||||||
| 65 | =head1 COPYRIGHT AND LICENSE | ||||||||||
| 66 | |||||||||||
| 67 | This software is Copyright (c) 2015 by Brad Lhotsky. | ||||||||||
| 68 | |||||||||||
| 69 | This is free software, licensed under: | ||||||||||
| 70 | |||||||||||
| 71 | The (three-clause) BSD License | ||||||||||
| 72 | |||||||||||
| 73 | =cut | ||||||||||
| 74 | |||||||||||
| 75 | __DATA__ | ||||||||||
| 76 | referer For web request, the Referrer, note, mispelled as in the RFC | ||||||||||
| 77 | sld Second-Level Domain, ie what you'd buy on a registrar | ||||||||||
| 78 | filetype File type or Extension | ||||||||||
| 79 | mimetype MIME Type of the file | ||||||||||
| 80 | { "name": "time_ms", "type": "double", "description": "Time in millis action took" } | ||||||||||
| 81 | { "name": "response_ms", "type": "double", "description": "For web requests, total time to send response" } | ||||||||||
| 82 | { "name": "upstream_ms", "type": "double", "description": "For web requests, total time to get response from upstream service" } | ||||||||||
| 83 | src_user Source username | ||||||||||
| 84 | dst_user Destination username | ||||||||||
| 85 | { "name": "src_geoip", "type": "object", "description": "GeoIP Data for the source IP", "properties": { "location": { "type": "geo_point" } } } | ||||||||||
| 86 | { "name": "dst_geoip", "type": "object", "description": "GeoIP Data for the destination IP", "properties": { "location": { "type": "geo_point" } } } | ||||||||||
| 87 | { "name": "attacks", "type": "object", "enabled": false, "description": "Attacks root node" } | ||||||||||
| 88 | { "name": "attack_score", "type": "integer", "description": "Total score of all attack detection checks" } | ||||||||||
| 89 | attack_tokens Unique tokens identified in the attack scoring process | ||||||||||
| 90 | attack_types Type of attacks detected | ||||||||||
| 91 | name Name of the event | ||||||||||
| 92 | class Class of the event | ||||||||||