You are not logged in.

#1 2012-07-10 04:48:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

[solved w/ journalctl] How to change /var/log/boot time & date format?

Two bonus questions:
1. How to not save / to remove filesystem check from the log:

Tue Jul  3 04:56:33 2012: :: Checking Filesystems    [BUSY] /dev/sda1: czysty, 31/26208 pli
ków, 22211/104420 bloków(sprawdzenie za 3 montowań)
Tue Jul  3 04:56:33 2012: /dev/sda4 był montowany 22 razy bez sprawdzania, wymuszono sprawd
zenie.
Tue Jul  3 04:56:33 2012: ^A/dev/sda4: |                                                   
     |  0.3%   ^B^A/dev/sda4: |                                                        /  0
.6%   ^B^A/dev/sda4: |=                                                       -  1.2%   ^B
^A/dev/sda4: |=                                                       \  1.5%   ^B^A/dev/sda
4: |=                                                       |  1.8%   ^B^A/dev/sda4: |=   
                                                    /  2.4%   ^B^A/dev/sda4: |=                    
                                   -  2.7%   ^B^A/dev/sda4: |==                                 
                     \  3.0%   ^B^A/dev/sda4: |==                                                 
     |  3.2%   ^B^A/dev/sda4: |==                                                      /  
3.8%   ^B^A/dev/sda4: |==                                                      -  4.1%   
^B^A/dev/sda4: |==                                                      \  4.4%   ^B^A/dev/

It's a mess.


2. Why 'file' sees it as data and not text?

$ file /var/log/boot
/var/log/boot: data

Last edited by karol (2012-11-14 18:13:31)

Offline

#2 2012-07-10 09:44:32

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [solved w/ journalctl] How to change /var/log/boot time & date format?

@karol, I know you don't need the detailed instructions.  I wrote my reply to help others who are not yet familiar with grep.  I had a lot of disk check messages in my boot log from reboots after power failures this past week.

The most simple regex to find the disk-check lines in the boot log was '|'.  For me, it didn't catch anything extra.  See what you catch with:

$ grep -n '|' /var/log/boot

I added the -n option just so I could see where lines started.  If the grep works, just copy the inverse grep to a file.

$ grep -v '|' /var/log/boot > ~/bootlog_edit.txt

I don't see a way to stop the lines from being written after checking 'man bootlogd', but I'm often wrong.  'bootlogd' is called at startup from /etc/rc.sysinit.

Last edited by thisoldman (2012-07-10 09:51:59)

Offline

#3 2012-07-10 14:39:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved w/ journalctl] How to change /var/log/boot time & date format?

thisoldman wrote:

@karol, I know you don't need the detailed instructions.

<chuckles> Thanks :-)


'|' is being used as part of the "throbber" :

/ - \ |

(the quasi-spinning thingy) but it shouldn't be a problem.

Offline

#4 2012-07-10 15:02:45

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [solved w/ journalctl] How to change /var/log/boot time & date format?

Tue Jul  3 04:56:33 2012: :: Checking Filesystems    [BUSY] /dev/sda1: czysty, 31/26208 pli
ków, 22211/104420 bloków(sprawdzenie za 3 montowań)
Tue Jul  3 04:56:33 2012: /dev/sda4 był montowany 22 razy bez sprawdzania, wymuszono sprawd
zenie.
...

What does this mean?

What does it say?


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#5 2012-07-10 16:38:13

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved w/ journalctl] How to change /var/log/boot time & date format?

Sorry, that's because of https://bbs.archlinux.org/viewtopic.php?id=144397
It's just the standard stuff

Tue Jul  3 04:56:33 2012: :: Checking Filesystems    [BUSY] /dev/sda1: clean, 31/26208 files, 22211/104420 blocks (filesystem check in 3 mounts)
Tue Jul  3 04:56:33 2012: /dev/sda4 has been mounted 22 times without checking. Check forced.

Last edited by karol (2012-07-10 16:38:26)

Offline

#6 2012-11-14 18:12:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved w/ journalctl] How to change /var/log/boot time & date format?

journalctl has a nicer default time & date format, so I consider this solved.

Offline

Board footer

Powered by FluxBB