Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Heymdall/good-logstash-tcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

good-logstash-tcp

A good reporter to communicate directly with a logstash instance

Install

npm install --save good-logstash-tcp

Usage

good-logstash-tcp is a write stream use to send events to logstash

Example for sending all log events to logstash

connection.register({
    register: require('good'),
    options: {
        reporters: {
            logstash: [
                {
                    module: 'good-squeeze',
                    name: 'Squeeze',
                    args: [{ log: '*'}]
                },
                {
                    module: 'good-logstash-tcp',
                    args: [{
                        tlsOptions: {
                            host: 'localhost',
                            port: 8001
                        }
                    }]
                }
            ]
        } 
    }
);

About

Logstash reporter for good

Resources

Stars

Watchers

Forks

Packages

No packages published