| 1 | package eris::schema::syslog; | ||
| 2 | # ABSTRACT: Schema for the syslog data | ||
| 3 | |||
| 4 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use Types::Standard qw(InstanceOf); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | with qw( | |
| 9 | eris::role::schema | ||
| 10 | ); | ||
| 11 | |||
| 12 | 1 | our $VERSION = '0.008'; # VERSION | |
| 13 | |||
| 14 | |||
| 15 | 0 | ▶ | sub _build_priority { 100 } |
|
Subroutine
_build_priority: not called CC=1 SCAR=6.9
| |||
| 16 | |||
| 17 | |||
| 18 | # Match *EVERYTHING* | ||
| 19 | 0 | ▶ | sub match_log { 1; } |
|
Subroutine
match_log: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 20 | |||
| 21 | |||
| 22 | 1 | 1; | |
| 23 | |||
| 24 | __END__ | ||
| 25 | |||
| 26 | =pod | ||
| 27 | |||
| 28 | =encoding UTF-8 | ||
| 29 | |||
| 30 | =head1 NAME | ||
| 31 | |||
| 32 | eris::schema::syslog - Schema for the syslog data | ||
| 33 | |||
| 34 | =head1 VERSION | ||
| 35 | |||
| 36 | version 0.008 | ||
| 37 | |||
| 38 | =head1 SYNOPSIS | ||
| 39 | |||
| 40 | Simple syslog schema. Matches all logs and will index them into | ||
| 41 | the B<index_name> specified or C<syslog-%Y.%m.%d> if not provided. | ||
| 42 | |||
| 43 | If you'd like to enable the debugging dictionary on this schema, add the | ||
| 44 | following to your C<config.yaml>. | ||
| 45 | |||
| 46 | --- | ||
| 47 | schemas: | ||
| 48 | config: | ||
| 49 | syslog: | ||
| 50 | dictionaries: | ||
| 51 | config: | ||
| 52 | eris::debug: { enabled: 1 } | ||
| 53 | |||
| 54 | This will index the fields contained in the L<eris::dictionary::eris::debug> | ||
| 55 | dictionary. | ||
| 56 | |||
| 57 | =head1 PROPERTIES | ||
| 58 | |||
| 59 | =over 2 | ||
| 60 | |||
| 61 | =item B<final> | ||
| 62 | |||
| 63 | True (default) | ||
| 64 | |||
| 65 | =item B<flatten> | ||
| 66 | |||
| 67 | True (default) | ||
| 68 | |||
| 69 | =item B<priority> | ||
| 70 | |||
| 71 | 100 - Try hard to be last | ||
| 72 | |||
| 73 | =item B<use_dictionary> | ||
| 74 | |||
| 75 | True - Prunes unknown fields (default) | ||
| 76 | |||
| 77 | =item B<dictionary> | ||
| 78 | |||
| 79 | See L<eris::dictionary> for the default configuration | ||
| 80 | |||
| 81 | =item B<match_log> | ||
| 82 | |||
| 83 | Matches everything | ||
| 84 | |||
| 85 | =back | ||
| 86 | |||
| 87 | =head1 SEE ALSO | ||
| 88 | |||
| 89 | L<eris::role::schema> | ||
| 90 | |||
| 91 | =head1 AUTHOR | ||
| 92 | |||
| 93 | Brad Lhotsky <brad@divisionbyzero.net> | ||
| 94 | |||
| 95 | =head1 COPYRIGHT AND LICENSE | ||
| 96 | |||
| 97 | This software is Copyright (c) 2015 by Brad Lhotsky. | ||
| 98 | |||
| 99 | This is free software, licensed under: | ||
| 100 | |||
| 101 | The (three-clause) BSD License | ||
| 102 | |||
| 103 | =cut | ||