6.6. nodejs: Receiving JSON messages from nodejs applications
nodejs() driver, syslog-ng OSE can receive application logs directly from nodejs applications that use the widespread Winston logging API. The syslog-ng OSE application automatically adds the
.nodejs.winston. prefix to the name of the fields the extracted from the message.
To use the
nodejs() driver, the
scl.conf file must be included in your syslog-ng OSE configuration:
nodejs() driver is actually a reusable configuration snippet configured to receive log messages using the
network() driver, and process its JSON contents. For details on using or writing such configuration snippets, see Section 5.6.2, Reusing configuration blocks. You can find the source of the nodejs configuration snippet on GitHub.
For details on the parameters of the