Return to
Portfolio

25.9. Format Conversion

The requirements and possibilities for format conversion are endless. NXLog provides a broad range of functionality for conversion, including the NXLog language and dedicated modules. For special cases a processor or extension module can be crafted.

For converting between CSV formats, see Complex CSV Format Conversion.

Example 93. Converting from BSD to IETF Syslog

This configuration receives log messages in the BSD Syslog format over UDP and forwards the logs in the IETF Syslog format over TCP.

nxlog.conf [Download file]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<Extension _syslog>
    Module  xm_syslog
</Extension>

<Input bsd>
    Module  im_udp
    Port    514
    Host    0.0.0.0
    Exec    parse_syslog_bsd(); to_syslog_ietf();
</Input>

<Output ietf>
    Module  om_tcp
    Host    1.2.3.4
    Port    1514
</Output>

<Route bsd_to_ietf>
    Path    bsd => ietf
</Route>