Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.12 KB

README.md

File metadata and controls

58 lines (37 loc) · 1.12 KB

Build Status js-standard-style

papetrail-reports

Collection of utilities to generate reports from Papertrail

Setup

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

Usage

Run different npm scripts

Unique users

Show number of unique users from the latest 2500 events

$ npm run unique-users-live

Unique companies

Show number of unique companies and their names from the latest 2500 events

$ npm run unique-companies-live

Extract archive files

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

License

MIT