https://github.com/welldone-software/pino-influxdb
https://github.com/welldone-software/pino-influxdb
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/welldone-software/pino-influxdb
- Owner: welldone-software
- Created: 2016-10-12T15:28:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-25T18:07:08.000Z (over 9 years ago)
- Last Synced: 2025-10-05T07:21:23.214Z (9 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pino-infuxdb
Influxdb transport for pino logger
## How to install
Install globally by running:
```sh
$ npm i -g pino-influxdb
```
## How to use
Usage is done by piping. You pipe your process output to pino-influxdb like so:
```sh
$ node your-program-that-outputs-pino-json | pino-influxdb --host http://somehost:8086 --database logs --measurement log
```
## Command Line options
```
--help Show help [boolean]
--version Show version number [boolean]
--echo Echo the logs [boolean] [default: true]
--measurement The measurement name [default: "log"]
--database The database name. Will be created if missing.
[default: "logs"]
--host Influx db host url.
[string] [default: "http://localhost:8086"]
--tags List of tags [array] [default: ["pid","hostname","level"]]
```
## License
This package is licensed under [MIT license](https://opensource.org/licenses/MIT)