https://github.com/elastic/go-lumber
Go based lumberjack client and server implementation.
https://github.com/elastic/go-lumber
beats golang logstash lumberjack
Last synced: 3 months ago
JSON representation
Go based lumberjack client and server implementation.
- Host: GitHub
- URL: https://github.com/elastic/go-lumber
- Owner: elastic
- License: apache-2.0
- Created: 2016-06-15T14:52:50.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2024-09-13T08:06:22.000Z (10 months ago)
- Last Synced: 2025-03-29T08:08:24.839Z (3 months ago)
- Topics: beats, golang, logstash, lumberjack
- Language: Go
- Homepage:
- Size: 62.5 KB
- Stars: 56
- Watchers: 59
- Forks: 37
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# go-lumber
[](https://github.com/elastic/go-lumber/actions/workflows/ci.yml)
[](https://goreportcard.com/report/github.com/elastic/go-lumber)
[](https://github.com/elastic/go-lumber/graphs/contributors)
[](https://github.com/elastic/go-lumber/releases/latest)Lumberjack protocol client and server implementations for go.
## Example Server
There is an example server in [cmd/tst-lj](cmd/tst-lj/main.go). It will accept
connections and log when it receives batches of events.```
# Install to $GOPATH/bin.
go install github.com/elastic/go-lumber/cmd/tst-lj@latest# Start server.
tst-lj -bind=localhost:5044 -v2
2022/08/14 00:13:54 Server config: server.options{timeout:30000000000, keepalive:3000000000, decoder:(server.jsonDecoder)(0x100d88e80), tls:(*tls.Config)(nil), v1:false, v2:true, ch:(chan *lj.Batch)(nil)}
2022/08/14 00:13:54 tcp server up
```