when i use console.log (or process.stdout.write directly), my syslog message is being prepended with system(?) information.
e.g.
console.log({"level":"INFO","source":"Socket Service","message":"socket connected from 127.0.0.1","data":""});
=>
syslog:
{"rev":"8248314","rel":"20150701124055","pid":7831} : {"level":"INFO","source":"Socket Service","message":"socket connected from
127.0.0.1:46579","data":""}
{"rev":"8248314","rel":"20150701124055","pid":7831} :
vs
terminal console output:
{"level":"INFO","source":"Socket Service","message":"socket connected from 127.0.0.1","data":""}
my problem is that when this log is sent to loggly, the loggly parsing process fails due to invalid json - from the {"rev":"8248314","rel":"20150701124055","pid":7831} :
i thought it might be a configuration issue on ubuntu/rsyslog but then i noticed that the logs are not being altered from our java applications. so this leads me to thinking it is something with node.
any clues at to what is prepending the log messages and how i can prevent this from happening using rsyslog?
thanks in advance for any help...
cheers,
scott