You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,11 @@
2
2
3
3
Based on the syslog4j library bundled with Graylog.
4
4
5
-
This plugin allows you to forward messages from a Graylog 2.X server in syslog format. Messages can be dispatched over TCP or UDP and formatted as plain text (classic), structured syslog (rfc 5424) or CEF (experimental).
5
+
This plugin allows you to forward messages from a Graylog server in syslog format.
6
+
Messages can be dispatched over TCP or UDP and formatted as plain text (classic), structured syslog (rfc 5424) or CEF (experimental).
6
7
7
-
This plugin supports Graylog 2.4.x, 2.5.x, 3.0.0. Other releases might work, pls try to use latest plugin.
8
+
This plugin supports Graylog 2.4.x, 2.5.x, 3.0.0 and 3.3.x.
9
+
Newever releases might work, please try to use the latest plugin.
8
10
9
11
## Graylog marketplace
10
12
@@ -31,7 +33,7 @@ You can build a plugin (JAR) with `mvn package`.
31
33
-_Syslog port_: Syslog receiver port on remote host, usually 514
32
34
-_Format_: Specify one of plain, structured, full, cef or custom:FQCN (see below for explanation on values)
33
35
34
-

36
+

35
37
36
38
## Supported formats
37
39
@@ -145,6 +147,20 @@ If existing fields does not contain such keys, following fields will be added to
145
147
| msg | Message text (`message`) |
146
148
| externalId | Message ID (assigned by Graylog) |
147
149
150
+
### Receiving and sending UTF-8 messages.
151
+
152
+
Graylog internally are fully UTF-8 capable. All messages are stored as Unicode. When sending messages to syslog server,
153
+
154
+
RFC requires adding BOM mark to the messages to identify the string is UTF-8 encoded.
155
+
156
+
```
157
+
curl -XPOST http://localhost:12201/gelf -p0 -d '{"short_message":"Hello there🙂Ё Ђ Ѓ Є Ѕ І Ї Ј Љ Њ Ћ Ќ Ў Џ А Б В Г Д Е Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Ъ Ы Ь Э Ю Я а б в г д е ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ "}'
158
+
```
159
+
160
+
When running syslog (syslog-ng v 3.27.1), this gets written to /var/log/messages
161
+
162
+
Jun 20 19:31:43 Ruslans-MacBook-Pro11111111111111111111111 .local Hello there🙂Ё Ђ Ѓ Є Ѕ І Ї Ј Љ Њ Ћ Ќ Ў Џ А Б В Г Д Е Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Ъ Ы Ь Э Ю Я а б в г д е ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ
@@ -293,6 +319,7 @@ public ConfigurationRequest getRequestedConfiguration() {
293
319
configurationRequest.addField(newTextField("truststore", "Trust store", "", "Path to Java keystore (required for SSL over TCP). Optional (if not set, equals to key store). Must contain peers we trust connecting to.", ConfigurationField.Optional.OPTIONAL));
294
320
configurationRequest.addField(newTextField("truststorePassword", "Trust store password", "", "", ConfigurationField.Optional.OPTIONAL));
295
321
322
+
configurationRequest.addField(newBooleanField("utf8", "UTF-8 BOM", false,"Always add BOM to messages send. Use this to conform to RFC 5424 requirements for UTF-8 messages."));
0 commit comments