Skip to content

Commit 5d3e464

Browse files
authored
Update README.md
1 parent c297551 commit 5d3e464

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ systemd-netlogd
55
[![Total alerts](https://img.shields.io/lgtm/alerts/g/systemd/systemd-netlogd.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/systemd/systemd-netlogd/alerts/)
66

77
Forwards messages from the journal to other hosts over the network using
8-
the Syslog Protocol (RFC 5424). It can be configured to send messages to
8+
the Syslog Protocol (RFC 5424 and RFC 3339). It can be configured to send messages to
99
both unicast and multicast addresses. systemd-netlogd runs with own user
1010
systemd-journal-netlog. Starts sending logs when network is up and stops
1111
sending as soon as network is down (uses sd-network). It reads from journal
@@ -50,7 +50,9 @@ systemd-netlogd reads configuration files named `/etc/systemd/systemd-netlogd.co
5050
5151
Protocol=
5252
Specifies whether to use udp or tcp protocol. Defaults to udp.
53-
53+
54+
LogFormat=
55+
Specifies whether to use RFC 5424 format or RFC 3339 format. Takes one of rfc5424 or rfc3339. Defaults to rfc5424.
5456
Optional settings
5557

5658
StructuredData=
@@ -64,15 +66,18 @@ systemd-netlogd reads configuration files named `/etc/systemd/systemd-netlogd.co
6466
[Network]
6567
Address=239.0.0.1:6000
6668
#Protocol=udp
69+
#LogFormat=rfc5424
6770
Example 2. /etc/systemd/systemd-netlogd.conf
6871

6972
[Network]
7073
Address=192.168.8.101:514
7174
#Protocol=udp
75+
LogFormat=rfc3339
7276

7377
Example 3. /etc/systemd/systemd-netlogd.conf
7478

7579
[Network]
7680
Address=192.168.8.101:514
7781
#Protocol=udp
82+
LogFormat=rfc5424
7883
StructuredData=[1ab456b6-90bb-6578-abcd-5b734584aaaa@41058]

0 commit comments

Comments
 (0)