@sematext/logagent-tcp-inputdeprecated

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

Usage no npm install needed!

<script type="module">
  import sematextLogagentTcpInput from 'https://cdn.skypack.dev/@sematext/logagent-tcp-input';
</script>

README

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