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.7.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

Actually it will convert any data from stdin (not just pino logs) and if it can parse it
as JSON then it will insert that into mongo otherwise it will insert that as it is but with msg field.

Install

npm i -g pino-mongodb

Usage

node my-app.js | pino-mongodb [options]
  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