• Home
  • Systems
  • Networking
  • WordPress
  • Web
  • Geekery

Analysis and Review

How to Tail Linux Error Logs with New Lines

July 26, 2018 by Kurt Turner

Tired of the /n (new line) in your error logs? Run this command to format your errors logs as the logs pipe out. Tested and works with most linux based systems such as Ubuntu, Redhat etc.

[code]
tail -f /var/log/apache2/error.log | perl -pe ‘BEGIN {$| = 1; }; s/\[error\]\s+\[client.*?\]\s+//; s/, referer:.*//’ | perl -pe ‘BEGIN {$| = 1;}; s/\\n/\n/g;’
[/code]

Filed Under: Systems

Latest and Greatest

Apache vs Nginx for WordPress

Certbot Lets Encrypt And WordPress MU Multi-Site

How To Find and Replace Multiple File in MS Word

How To Get Stretch Res on Windows 10 AMD Radeon For Game Play

This is the ASUS Chromebox we've been running for 2 years as our "brain" for our home grown digital display kiosk.

DIY Digital Signage Bulletin Board or Kiosk

© Copyright Analysis And Review · All Rights Reserved ·