ilastlog
v0.3.3-beta.0
Published
alternative lastlog because of Ubuntu 24.04.1. The distros have had the libpam excluding lastlog.so. therefore, I personally needed.
Readme
iLastlog
📝 Desc
the lastlog command on Ubuntu 24.04.1 don't worked.
That's why I created this command.
📦 Requirements
- Node.js:
>=20.11.1(version tested: 20.11.1) - npm:
>=10.2.4(version tested: 10.2.4) - Bash:
>=5.2.21(version tested: 5.2.21) - Not supported Windows OS, Mac
⚠️ 다른 버전에서도 정상적으로 작동할 수 있지만, 공식적으로 테스트된 버전은 위와 같습니다.
✨ Features
.
📥 Installation
CLI
$ npm install --global ilastlogAPI
$ cd your_project
$ npm install ilastlog🚀 Usage
ilastlog [options] [argText]
CLI (using Shell)
$ # Not supported yet. #CLI (using Node)
help
$ ilastlog -hbasic (using pipe)
$ cat /var/log/auth.log | ilastlogbasic (using arg)
$ ilastlog "timeStamp log context"other (using alias)
## on bash ##
$ echo "alias ilast='cat /var/log/auth.log | ilastlog'" >> ~/.bashrc
$ source ~/.bashrc
$ ilastother (using npx)
$ cat /var/log/auth.log | npx ilastlogAPI
const { ilastlog } = require("ilastlog");
ilastlog(sampleTexts);
ilastlogAsync(sampleTexts).then(callback)🧪 Sample
Save File Path
Linux
$ cat ~/.local/share/ilastlog-nodejs/lastlog.json🔧 Configs
.
Format
supported time format
syslog "MMM dd HH:mm:ss"
ISO8601 "yyyy-MM-dd'T'HH:mm:ss.SSSZZ"
RFC2822 "EEE, dd MMM yyyy HH:mm:ss ZZ"🚀 Upcoming Features
- Support for customizable time format settings will be added in a future update.
