NAME
eris::log::decoder::json - Decodes any detected JSON in a log line from then opening curly brace
VERSION
version 0.004
SYNOPSIS
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 correcty.
ATTRIBUTES
priority
Defaults to 99, run almost last
METHODS
decode_message
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.
SEE ALSO
eris::log::decoders, eris::role::decoder, JSON::MaybeXS
AUTHOR
Brad Lhotsky <brad@divisionbyzero.net>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2015 by Brad Lhotsky.
This is free software, licensed under:
The (three-clause) BSD License