Skip to main content

Converter from /var/log/lastlog to csv file.

Project description

Lastlogcsv

Tests result Build result

Converter from /var/log/lastlog to csv file.

Install from PyPI

pip3 install lastlogcsv

Install from Github

pip3 install git+https://github.com/Dashstrom/lastlogcsv

Usage

You can run the script with lastlogcsv or python3 -m lastlogcsv

usage: lastlogcsv [-h] [-i INPUT] [-o OUTPUT] [-s {L,A}] [-e]

Converter file from /var/log/lastlog to csv file.

The output format is `uid,timestamp,tine,host`.
Exemple : `1000,1582898351,pts/0,192.168.56.1`

options:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        lastlog file, /var/log/lastlog by default on unix system
  -o OUTPUT, --output OUTPUT
                        destination for CSV file
  -s {L,A}, --struct {L,A}
                        'A' for actual struct, 'L' for legacy
  -e, --error           display complete error

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lastlogcsv-2.0.0.tar.gz (25.9 kB view hashes)

Uploaded Source

Built Distribution

lastlogcsv-2.0.0-py3-none-any.whl (17.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page