Skip to content

Commit d011360

Browse files
TRANSPORT Macro (#83)
Added TRANSPORT macro to the list of available macros. Signed-off-by: Zsolt Gyulai (zgyulai) <[email protected]>
2 parents 6f05498 + 272b882 commit d011360

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

doc/_admin-guide/110_Template_and_rewrite/000_Customize_message_format/004_Macros_of_syslog-ng.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,49 @@ database column.
435435

436436
An alias of the ${TZOFFSET} macro.
437437

438+
## ${TRANSPORT}
439+
440+
This macro is available in syslog-ng OSE 4.5 and later versions. The syslog-ng OSE application automatically populates this name-value pair with the transport-mechanism used to retrieve the message. The value depends on the source driver that received the message. The implemented values are the following:
441+
442+
* BSD syslog drivers `tcp()`, `udp()` & `network()`
443+
* rfc3164+tls
444+
* rfc3164+tcp
445+
* rfc3164+udp
446+
* rfc3164+proxied-tcp
447+
* rfc3164+proxied-tls
448+
* rfc3164+proxied-tls-passthrough
449+
* rfc3164+ \<custom logproto like altp\>
450+
451+
* UNIX domain drivers `unix-dgram()`, `unix-stream()`
452+
* `unix-stream`
453+
* `unix-dgram`
454+
455+
* rfc5424 style syslog `syslog()`:
456+
* rfc5426+udp
457+
* rfc6587+tcp
458+
* rfc6587+proxied-tcp
459+
* rfc5425+tls
460+
* rfc5424+proxied-tls
461+
* rfc5424+proxied-tls-passthrough
462+
* rfc5424+\<custom logproto like altp\>: syslog over a logproto plugin
463+
464+
465+
* Other drivers:
466+
* otlp: `otel()` driver
467+
* mqtt: `mqtt()` driver
468+
* hypr-api: `hypr-audit-trail()` driver
469+
470+
* Locally created logs (available in 4.7 and later versions):
471+
* `local+unix-stream`
472+
* `local+unix-dgram`
473+
* `local+file`
474+
* `local+pipe`
475+
* `local+program`
476+
* `local+devkmsg`
477+
* `local+journal`
478+
* `local+afstreams`
479+
* `local+openbsd`
480+
438481
## ${TZOFFSET}, ${C_TZOFFSET}, ${R_TZOFFSET}, ${S_TZOFFSET}
439482

440483
The time-zone as hour offset from GMT, for example:

0 commit comments

Comments
 (0)