eris::schemas - Discovery and access for schemas
version 0.008
use eris::schemas; use eris::contextualizer; my $schm = eris::schemas->new(); my $ctxr = eris::contextualizer->new(); # Transform each line from STDIN or a file into bulk commands: while( <<>> ) { my $log = $ctxr->contextualize( $_ ); print $schm->as_bulk($log); }
Default namespace is 'eris::schema'
Takes an instance of an eris::log you want to index into ElasticSearch.
Discover all possible, enabled schemas according to the search_path as configured, find all schemas matching the passed eris::log object.
search_path
Returns a list
Takes an instance of an eris::log to index into ElasticSearch.
Using the find() method, return a list of the commands necessary to bulk index the instance of an eris::log object as an array of new-line delimited JSON.
find()
Using the find() method, return the first document to be created from the eris::log entry.
Brad Lhotsky <brad@divisionbyzero.net>
This software is Copyright (c) 2015 by Brad Lhotsky.
This is free software, licensed under:
The (three-clause) BSD License
To install eris, copy and paste the appropriate command in to your terminal.
cpanm
cpanm eris
CPAN shell
perl -MCPAN -e shell install eris
For more information on module installation, please visit the detailed CPAN module installation guide.