eris::log::decoder::json - Decodes any detected JSON in a log line from then opening curly brace
version 0.008
This decoder checks for the presence of an opening curly brace in the raw message. If detected, it assumes the entire rest of the string is valid JSON and attempted to decode.
This means the whole message doesn't need to be JSON, so you can syslog JSON and the eris::log::decoder::syslog will properly handle the syslog headers and structure. This decoder will then grab that JSON hashref and parse it correctly.
Defaults to 99, run almost last
Takes a raw string. Find the first occurrence of an opening curly brace '{' and parses from that point to the end of the message as if it were valid JSON.
eris::log::decoders, eris::role::decoder, JSON::MaybeXS
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.