/tcp-reader

Simple TCP reader with filtration

Primary LanguageGo

Build Status Go Report Card

About

This app creates server that listen on the specified port and prints all incoming messages to the stdout.

Default configuration:

tcp-reader -host=localhost -port=9999 -prefix=">>> "

All internal messages is prefixed by >>>.

Messages delimiter: \n.

Install

For everyone:

curl -sf https://gobinaries.com/cheshir/tcp-reader | sh

For go users:

go get -u github.com/cheshir/tcp-reader

Usage

With default settings:

tcp-reader

For example we're going to read error and panic messages only:

tcp-reader -host=localhost -port=9999 -prefix=">>> " -filter="(error|panic)"

Filter supports golang regexp syntax.

Matched substrings would be highlighted if TERM environment variable is set.