[LEDE-DEV] [PATCH ubox v2] Add template support to logread
Baptiste Jonglez
baptiste at bitsofnetworks.org
Thu Apr 27 22:20:57 PDT 2017
Hi,
On Thu, Apr 27, 2017 at 04:33:31PM -0700, Henry Chang wrote:
> Hi,
>
> I would like to integrate logd with a cloud logging service.
> The service only accepts certain format of log, so I decided to make logread support an output template.
Can't this service use standard syslog messages?
E.g. by using something like:
config system
option log_remote '1'
option log_ip '42.42.42.42'
> Here's the usage:
>
> logread -T "%priority% %source% %message% %timestamp%"
>
> Currently supports 4 keywords: priority, source, message, timestamp.
> The keywords should be surrounded by percent signs as showed above.
>
> Regards,
>
> Henry Chang
>
> Henry Chang (1):
> logread: Add support for output template
>
> log/logread.c | 153 ++++++++++++++++++++++++++++++++++++++++++++++++----------
> 1 file changed, 127 insertions(+), 26 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/lede-dev/attachments/20170428/46e9582f/attachment-0001.sig>
More information about the Lede-dev
mailing list