Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pino-mongodb

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-mongodb

Load pino logs into MongoDB

  • 0.6.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.8K
increased by7.03%
Maintainers
1
Weekly downloads
 
Created
Source

pino-mongodb

Standard - JavaScript Style Guide

Load pino logs into MongoDB

Install

npm i -g pino-mongodb

Usage

It takes process.stdin stream, parses the data and tries to insert that data into
mongodb.

With server use it like this

node server.js | pino-mongodb [options]

Options

To define db connection you can either specify configuration with args or with env

envdescribe
DB_HOSTDataBase host
DB_PORTDataBase port
DB_NAMEDataBase name
DB_COLLECTIONDataBase collection name
DB_USERDataBase username
DB_PASSDataBase password

Note: if env variable is defined then argv variable will be ignored

Help

  Usage: pino-mongodb [options]

  Load pino logs into MongoDB

  Options:

    -h, --help               output usage information
    -V, --version            output the version number
    -H, --host <address>     set database host (localhost)
    -P, --port <number>      set database port (27017)
    -d, --db <name>          set database name (logs)
    -c, --collection <name>  set database collection (logs)
    -u, --user <username>    set database username
    -p, --pass <password>    set database password
    -q, --quiet              suppress stdin to stdout output (false)
    --show-insert-errors     show errors from inserting documents into mongodb (true)

Tests

npm test

License

Licensed under MIT.

Keywords

FAQs

Package last updated on 27 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc