You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 11, 2018. It is now read-only.
In your docs I see that by "last -R -F reboot" you have access to 83 days of history. But It was 4 years ago. Probably somethings was changed in logging mechanisms of Ubuntu. My fix allow to get only 28 days.
It is possible, that best solution is concatenate results of these commands. But I don't know rules that assign content of these logs. I asked about this on askubuntu.com
Not sure if that's actually a fix. If wtmp log rotation works as I expect, /var/log/wtmp.1 would actually be missing the most recent login entries. Please correct me if I've misunderstood.
I would like to help solve this problem, but my skill is to low. My question on askubuntu remain without answer. I suspect that that wtpm have config that allow to prevent deleting logs. Maybe simpler, but less correct approach is add cron task that save interesting data to other location.
Hi
Your script is AWESOME! But today I was confused by short time of history displayed in program. I fixed it. Please look at the screen.
Command
wc /var/log/wtpm*
calculates lines of files with temporal log this monthwtmp
and oldestwtmp.1
.My fixture is simple and changes line:
to
In your docs I see that by
"last -R -F reboot"
you have access to 83 days of history. But It was 4 years ago. Probably somethings was changed in logging mechanisms of Ubuntu. My fix allow to get only 28 days.It is possible, that best solution is concatenate results of these commands. But I don't know rules that assign content of these logs. I asked about this on
askubuntu.com
Sources:
The text was updated successfully, but these errors were encountered: