https://github.com/artyom/tcpsink
Simple TCP server storing incoming stream of json messages to snappy-compressed files
https://github.com/artyom/tcpsink
Last synced: 11 months ago
JSON representation
Simple TCP server storing incoming stream of json messages to snappy-compressed files
- Host: GitHub
- URL: https://github.com/artyom/tcpsink
- Owner: artyom
- License: mit
- Created: 2017-04-01T17:06:20.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-01T17:27:29.000Z (about 9 years ago)
- Last Synced: 2025-03-04T03:42:31.990Z (over 1 year ago)
- Language: Go
- Size: 3.91 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Command tcpsink implements TCP server storing incoming stream of json
messages to snappy-compressed files.
Usage of tcpsink:
-addr string
address to listen (default "localhost:9000")
-age duration
remove logs older than this value
-dir string
directory to write logs to (default "/tmp/logs")
-size int
maximum file size in bytes (split on message boundary) (default 16777216)
tcpsink was initially written as a standalone tcp endpoint for logstash:
tcp {
host => "127.0.0.1"
port => 9000
}