Re: log file noise

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I agree with Willem. cut is the command you want for trimming the date
and time stamp off the beginning of each line in the log file, e.g.
/var/log/messages.

This is the strategy I used for years.

More recently I haven't done this with journalctl output.  I think the
same basic approach using cut should work, but you probably need to turn
off journalctl's paging.

Best,

Janina

Willem van der Walt writes:
> Hi,
> Something like tail -50 /var/log/syslog|cut -f5- -d' '
> man cut for details, but basicly, it says show all columns starting with
> column 5 where columns are delimmited by space.
> HTH, Willem
> 
> 
> On Sat, 18 Apr 2020, Chris Zenchenko wrote:
> 
> > [The e-mail server of the sender could not be verified (SPF Record)]
> > 
> > Not exactly a Speakup issue but I'm wondering if anyone has figured out a
> > way to read through log files minus the date and time.
> > I'd like to be able to run through a file without all that extra info at the
> > start of each entry.
> > If I find something important then of course I want to know when but for
> > just skimming through a file all that extra speech is making me crazy.
> > Ok, more crazy than I am already!
> > 
> > _______________________________________________
> > Speakup mailing list
> > Speakup@xxxxxxxxxxxxxxxxx
> > http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
> > 
> _______________________________________________
> Speakup mailing list
> Speakup@xxxxxxxxxxxxxxxxx
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup

-- 

Janina Sajka

Linux Foundation Fellow
Executive Chair, Accessibility Workgroup:	http://a11y.org

The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
Chair, Accessible Platform Architectures	http://www.w3.org/wai/apa

_______________________________________________
Speakup mailing list
Speakup@xxxxxxxxxxxxxxxxx
http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup



[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]

  Powered by Linux