LoginSignup
0
0

More than 1 year has passed since last update.

ログ調査方法についての備忘録①

Last updated at Posted at 2023-02-19

ログ調査方法について調べてみた
いろいろな方法でログを調査する方法についてメモ書き

リアルタイムに出力させるコマンド

コマンド: tail -f ファイル名
例 
> tail -f /var/log/app/app.log

ある特定の文字列を出力させるコマンド

コマンド: cat ファイル名 | grep 文字列
例 
> cat /var/log/app/app.log | grep abc

※対象の文字列がある行を出力する

ある特定の文字列をリアルタイムで出力させるコマンド

コマンド: tail -f ファイル名 | grep 文字列
例 
> tail -f /var/log/app/app.log grep abc

備考

他にも調べれば、もっといい出力方法があるかも・・・

0
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
0
0