fluent-bit systemd 不显示任何日志

问题描述

我在 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

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...