@slofurno/logzq

1.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @slofurno/logzq

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

5.31 kB

Total Files

3

Last publish

Collaborators

  • slofurno