Skip to content

Commit 4b8d860

Browse files
system() and systemd over kmsg (#150)
Adjusted Linux section expanding it with new usecases. Signed-off-by: Zsolt Gyulai (zgyulai) <[email protected]>
2 parents 2512a1d + 5040782 commit 4b8d860

File tree

1 file changed

+4
-1
lines changed
  • doc/_admin-guide/060_Sources/180_System

1 file changed

+4
-1
lines changed

doc/_admin-guide/060_Sources/180_System/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ such messages without losing any information to CIM-aware applications
5050
| | Note that on Linux, the so-rcvbuf() option of the system() source is automatically set to 8192. |
5151
| | If the host is running under systemd, {{ site.product.short_name }} reads directly from the systemd journal file using the systemd-journal() source. |
5252
| | If the kernel of the host is version 3.5 or newer, and /dev/kmsg is seekable, {{ site.product.short_name }} will use that instead of /proc/kmsg, using the multi-line-mode(indented), keep-timestamp(no), and the format(linux-kmsg)options. |
53-
| | If {{ site.product.short_name }} is running in a jail or a Linux Container (LXC), it will not read from the /dev/kmsg or /proc/kmsg files. |
53+
| |If {{ site.product.short_name }} is running in a jail or a Linux Container (LXC), it will not read from the `/dev/kmsg` or `/proc/kmsg` files.
54+
| |With systemd: `systemd-journal();`
55+
| |Without systemd, on kernel 3.5 or newer: `unix-dgram("/dev/log"); file("/dev/kmsg" program-override("kernel") flags(kernel) format("linux-kmsg") keep-timestamp(no));`
56+
| |Without systemd, on kernels older than 3.5: `unix-dgram("/dev/log"); file("/proc/kmsg" program-override("kernel") flags(kernel) keep-timestamp(no));`
5457
| macOS | file("/var/log/system.log" follow-freq(1)); |
5558
| | **NOTE:** Starting with version 3.7, the {{ site.product.short_name }} system() driver automatically extracts the msgid from the message (if available), and stores it in the .solaris.msgid macro. To extract the msgid from the message without using the system()driver, use the **extract-solaris-msgid()** parser. You can find the exact source of the Solaris parser on GitHub.|
5659
| NetBSD | unix-dgram("/var/run/log"); |

0 commit comments

Comments
 (0)