utmpdump is output utmp format file to json or tsv or csv.
Multi-platform support
- Windows
- Mac OS X
- Linux 32,64bit
Or get the library
$ go get github.com/neko-neko/utmpdump
Or clone the repository and run
$ go install github.com/neko-neko/utmpdump
Usage of utmpdump: utmpdump [options]
-f, --file <file> load a specific file instead of utmp
-t, --until <YYYYMMDDHHMMSS> display the lines until the specified time
-s, --since <YYYYMMDDHHMMSS> display the lines since the specified time
-o, --output <json/tsv/csv> display the lines at specific format. Default format is json.
$ utmpdump -f /var/log/wtmp
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
neko-neko
MIT