camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine DESSAIGNE (JIRA)" <>
Subject [jira] [Created] (CAMEL-11574) camel-lumberjack should support longs
Date Fri, 21 Jul 2017 13:13:00 GMT
Antoine DESSAIGNE created CAMEL-11574:

             Summary: camel-lumberjack should support longs
                 Key: CAMEL-11574
             Project: Camel
          Issue Type: Improvement
            Reporter: Antoine DESSAIGNE

Filebeat 5 introduced json parsing options that allow using resources more efficiently but
the {{camel-lumberjack}} component unmarshalling behaves badly with long values so we can't
take advantage of it.

Right now the following log message :

With the following route
<?xml version="1.0" encoding="UTF-8"?>
<routes xmlns="" xmlns:u="">
        <from uri="lumberjack:"/>
        <log message="just received : ${body}"/>

Will produce the following console log
just received :.... long=1.491320561E12 .....
instead of 
just received :.... long=1491320561000 .....

Even if JSON is _not_ supposed to handle longs, implementations such as Jackson do support
it which is really handy. So switching from Gson to Jackson for JSON handling we'll be usefull.

This message was sent by Atlassian JIRA

View raw message