1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【備忘録】Raspberry Pi syslogの代わり

Posted at

最近ラズベリーパイ 5を買ったが、syslogを確認しようとしてもどこにもない...

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

結論

不具合ではなく仕様だったらしい。(Missing syslog file - Raspberry Pi Forums)
代わりにjournalctlを使って確認できる。

$ journalctl
# logがズラーっと出てくる。Enterキーで次の行を表示。
# ctrl+cで終了。

$journalctl | grep hoge
# 'hoge'が含まれた行を抽出。

$ journalctl -f
# logの出力を追跡する。ctrl+cで終了。

以上。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?