Collection of utilities to generate reports from Papertrail
Clone or download this repo.
$ git clone [email protected]:telemark/papetrail-reports.git
cd into directory and install dependencies
$ npm install
Create a .env
file with your API token for papertrail
API_TOKEN=your-api-token
Run different npm scripts
Show number of unique users from the latest 2500 events
$ npm run unique-users-live
Show number of unique companies and their names from the latest 2500 events
$ npm run unique-companies-live
Gunzips all .gz files in the archive directory and deletes zipped files after extraction. You can download archived log files from Papertrail
$ npm run extract-archive