You are not logged in.

#1 2018-04-29 20:05:59

xerxes_
Member
Registered: 2018-04-29
Posts: 1,077

[SOLVED]How to see last log from beginning

How to display last log from the beginning when log file probably has cycled (I see wtmp and wtmp.1 in /var/log/ directory) ?

Last edited by xerxes_ (2018-04-29 22:03:26)

Offline

#2 2018-04-29 20:53:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,849

Re: [SOLVED]How to see last log from beginning

wtmp logs logins and eg. my wtmp.1 is almost a year old - what "last log" in particular do you want to see?

Offline

#3 2018-04-29 21:10:37

xerxes_
Member
Registered: 2018-04-29
Posts: 1,077

Re: [SOLVED]How to see last log from beginning

I want to have posibility to view all logs from begining - from first to last (but normaly of course I will not use it, just sometimes).

Offline

#4 2018-04-29 21:14:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,849

Re: [SOLVED]How to see last log from beginning

To rephrase: *what* logs?
The journal? X11 server logs? The kernel ringbuffer? Cups?
Do you just want to cat a bunch of files in reverse order?

This very much sounds like an xy-problem.

Offline

#5 2018-04-29 21:22:40

xerxes_
Member
Registered: 2018-04-29
Posts: 1,077

Re: [SOLVED]How to see last log from beginning

I only think about last wtmp logs.
I found that I can display it by hexedit /var/log/wtmp.1 but this is not so much readable like last command.

btw. for who I can send mail if I have problems with changing my forum password (Wrong old password.) ?
If I logout I will not login to forum.

Offline

#6 2018-04-29 21:48:52

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED]How to see last log from beginning

last -f /var/log/wtmp.1

Edit: If you forgot your password, then make sure your mail address is correct and you can receive mail with it. Then use the "Forgotten your password?" option on the login form.

Last edited by progandy (2018-04-29 21:52:41)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#7 2018-04-29 22:02:27

xerxes_
Member
Registered: 2018-04-29
Posts: 1,077

Re: [SOLVED]How to see last log from beginning

Thanks progandy, that is what I was looking for.

Offline

Board footer

Powered by FluxBB