fluent-bit systemd 不显示任何日志

时间:2021-01-29 23:53:37

标签: fluent

我在 ubuntu 核心 16 上运行 fluent-bit。我试图变得流畅以处理 systemd 日志。

$ sudo fluent-bit -vv -i systemd -p systemd_filter=_SYSTEMD_UNIT=snap.chromium-mir-kiosk.chromium-mir-kiosk.service -o stdout -f 1

$ /var/log/journal/fa94aa6558db41c1a50ec683a005019e# ls
system.journal  user-1000.journal
Fluent Bit v1.5.7
* Copyright (C) 2019-2020 The Fluent Bit Authors
* Copyright (C) 2015-2018 Treasure Data
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io

[2021/01/30 12:14:01] [ info] Configuration:
[2021/01/30 12:14:01] [ info]  flush time     | 1.000000 seconds
[2021/01/30 12:14:01] [ info]  grace          | 5 seconds
[2021/01/30 12:14:01] [ info]  daemon         | 0
[2021/01/30 12:14:01] [ info] ___________
[2021/01/30 12:14:01] [ info]  inputs:
[2021/01/30 12:14:01] [ info]      systemd
[2021/01/30 12:14:01] [ info] ___________
[2021/01/30 12:14:01] [ info]  filters:
[2021/01/30 12:14:01] [ info] ___________
[2021/01/30 12:14:01] [ info]  outputs:
[2021/01/30 12:14:01] [ info]      stdout.0
[2021/01/30 12:14:01] [ info] ___________
[2021/01/30 12:14:01] [ info]  collectors:
[2021/01/30 12:14:01] [ info] [engine] started (pid=2771)
[2021/01/30 12:14:01] [debug] [engine] coroutine stack size: 24576 bytes (24.0K)
[2021/01/30 12:14:01] [debug] [storage] [cio stream] new stream registered: systemd.0
[2021/01/30 12:14:01] [ info] [storage] version=1.0.5, initializing...
[2021/01/30 12:14:01] [ info] [storage] in-memory
[2021/01/30 12:14:01] [ info] [storage] normal synchronization mode, checksum disabled, max_chunks_up=128
[2021/01/30 12:14:01] [debug] [input:systemd:systemd.0] add filter: _SYSTEMD_UNIT=snap.chromium-mir-kiosk.chromium-mir-kiosk.service (or)
[2021/01/30 12:14:01] [debug] [input:systemd:systemd.0] sd_journal library may truncate values to sd_journal_get_data_threshold() bytes: 65536
[2021/01/30 12:14:01] [debug] [router] default match rule systemd.0:stdout.0
[2021/01/30 12:14:01] [ info] [sp] stream processor started

0 个答案:

没有答案