signalk-filter-logs

1.0.2 • Public • Published

signalk-filter-logs

Small CLI utility to filter Signal K delta logfiles (produced by logger plugins such as https://www.npmjs.com/package/signalk-data-logger. Outputs a flat JSON or CSV file.

Installation:

$ [sudo] npm install -g signalk-filter-logs

Usage:

$ signalk-filter-logs --logs ./logs --output . --context vessels.urn:mrn:imo:mmsi:244016949 --filter speedOverGround,position --type csv

## Options:

# --logs, -l: location of the log files (required); e.g. ./logs
# --output, -o: location for the output file. Defaults to process.cwd()
# --type, -t: type of output file: csv or json
# --context, -c: the context to filter on (optional)
# --filter, -f: comma-seperated list of terms to filter paths on; e.g. speedOverGround,environment
# --extension: the extension of the log files. Defautls to .log.

Package Sidebar

Install

npm i signalk-filter-logs

Weekly Downloads

0

Version

1.0.2

License

Apache-2.0

Unpacked Size

24.5 kB

Total Files

11

Last publish

Collaborators

  • fabdrol