Socket
Socket
Sign inDemoInstall

dockstash

Package Overview
Dependencies
51
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dockstash

A log management tool for Docker and Logstash


Version published
Weekly downloads
7
increased by600%
Maintainers
1
Install size
4.83 MB
Created
Weekly downloads
 

Readme

Source

Dockstash

Dockstash sends Docker container logs (stderr and stdout) and resource usage statistics to Logstash. You can use it with Kibana to make awesome graphs like this:

Kibana

Installation

npm install -g dockstash

Running

dockstash --hosts <docker-hosts> --logstash <logstash-host:port>

Example Logstash conf

input {
  tcp {
    codec => json_lines {
      charset => "UTF-8"
    }
    port => 3000
  }
}

filter {
  date {
    match => [ "datetime", "MMM d kk:mm:ss.SSS", "UNIX" ]
    remove_field => "datetime"
  }
  multiline {
    pattern => "^\s"
    what => "previous"
  }
}

output {
  elasticsearch {
    host => "127.0.0.1"
    port => 9200
    protocol => "http"
  }
}

License

MIT

Keywords

FAQs

Last updated on 27 Aug 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc