Skip to content

IT Blog

Vyacheslav Gapon – personal blog, manuals, articles, notes, development

  • РусскийРусский
  • Popular categories

Watch Linux Logs in Real Time

Posted byVyacheslav 01.11.201701.11.2017 Leave a comment on Watch Linux Logs in Real Time

Example of a command to view the log file in real time:

tail -f /var/log/syslog

The output of the data can be highlighted in different colors, for this you can set ccze:

sudo apt-get install ccze

And for example, to formulate a command as follows:

tail -f /var/log/syslog | ccze --mode ansi

To stop viewing, you can use the keyboard shortcut Ctrl + C.

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • More
  • Click to share on Pocket (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to print (Opens in new window)
Posted byVyacheslav01.11.201701.11.2017Posted inLinuxTags: logs

Post navigation

Previous Post Previous post:
Asterisk warning “leave_voicemail: No more messages possible”
Next Post Next post:
Email notification about each SSH connection

Leave a comment

Leave a Reply Cancel reply

Categories

Contacts
DONATE
About it
Privacy
Subscribe by Email (EN)
Подписаться по Email (RU)
YouTube
Instagram

При использовании материалов, активная ссылка на сайт ixnfo.com обязательна!
When using materials, an active link to ixnfo.com is required!

IT Blog © 2013-2023 Privacy Policy