1.0.1 • Published 8 years ago

@sematext/logagent-tcp-input v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
8 years ago

logagent-tcp-input

Plugin to receive log data via TCP and send parsed JSON back to the client.

  1. Install logagent 2.x
npm i -g @sematext/logagent
  1. Install this plugin
npm i -g @sematext/logagent-tcp-input  
  1. configure logagent
input:
  tcp: 
    module: @sematext/logagent-tcp-input
    port: 45900
    bindAddress: 0.0.0.0
    sourceName: tcpTest
output:
  elasticsearch:
    url: http://localhost:9200
    index: logs
  1. Start logagent
logagent --config myconfig.yml
  1. Ship logs to the tcp port and receive parsed JSON in Elasticsearch
tail -F  ../access.log |  nc servername 45900