18.1.0 • Published 5 years ago

tql-cli v18.1.0

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

Command line tool for querying logs made with timequerylog module.

npm i -g tql-cli

Usage

Show this readme in terminal.

tql --help

Show 'events' from last 30 minutes. Output is JSON.

tql event

Type 'errors' from start time with data directory 'datalog'.

tql -d datalog errors -s 05-01-2015

Type 'event' between start and end time.

tql event -s "2008-09-15T15:53:00+00:00" -e "2008-09-15T16:53:00+00:00"

Match function.

tql event -s 01-01-2010 -m "return r.x>r.y;"

Glob match type.

tql event -s 01-01-2010 -u "error*"

Sort results after glob match

tql event -s 01-01-2010 -u "error*" -r "return a.id < b.id ? 1 : -1"

Glob match has optional map function.

tql event -s 01-01-2010 -u "error*" -a "return r.message"

Show last recorded data.

tql event -l "trade"
18.1.0

5 years ago

18.0.0

5 years ago

17.0.0

5 years ago

16.0.0

5 years ago

15.0.0

6 years ago

13.0.0

6 years ago

12.0.0

6 years ago

11.0.0

6 years ago

10.0.0

6 years ago

9.0.0

6 years ago

8.0.0

7 years ago

7.0.0

7 years ago

6.0.0

7 years ago

5.0.0

7 years ago

4.0.0

7 years ago

3.0.0

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago