1.1.1 • Published 5 years ago

@slofurno/logzq v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

install

npm install @slofurno/logzq

usage

const logzq = require('@slofurno/logzq')

let now = Date.now()
let start = now - 1000*60*60*24*3
let client = logzq({token: "x-auth-token", debug: true})

let res = await client.query({start, end: now, query: "service:my-service AND env:production AND message:(GET OR PATCH)"})

getting an auth token

  • sign into logz
  • open the network tab in your browser and select the xhr/fetch filter
  • look for the x-auth-token in the request header
1.1.1

5 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago