Comments (3)
In addition, I tried to make a short program, to write only one message, but the result was the same:
Opening Fluentd connection...
fluent#write: failed to reconnect, max retry: 0
Closing Fluentd connection...
from fluent-logger-golang.
That looks weird. As far as I checked with my code, the MaxRetry
is configured correctly.
package main
import (
"fmt"
"github.com/fluent/fluent-logger-golang/fluent"
)
func main() {
logger, _ := fluent.New(fluent.Config{FluentPort: 24224, FluentHost: "127.0.0.1", MaxRetry: 13})
fmt.Println("MaxRetry is", logger.Config.MaxRetry)
kv := make(map[string]string)
kv["key"] = "value"
logger.Post("yay", kv)
}
The console output from this code is:
$ date; go run fluenttest.go
Tue Oct 13 22:52:09 JST 2020
MaxRetry is 13
This code blocks while retrying as expected. If I launch Fluentd after this execution, it can receive the message.
So, I can't reproduce the case you posted.
from fluent-logger-golang.
Well, I gave up and replaced the program by a version in Python. Now, it's sending logs.
from fluent-logger-golang.
Related Issues (20)
- tagomoris will step down from the maintainer HOT 4
- Disordered Ack messages will be missed HOT 3
- Calls to Write() after calling Close() in sync mode reopen the connection HOT 5
- Migrate testing to Go's testing package HOT 1
- Release v1.8.0 HOT 5
- Feature: periodically reconnect to fluentd-address HOT 1
- Add a new option TLSCertPath
- Option to skip loggertag and timestamp
- Support for fluentd `shared_key` and `user_auth`
- Panic if TLS fluentd server cannot be connected
- Support to take TLS certificate in case of tls enabled
- Fluent-bit Supported
- RequestAck usage
- Sent payloads not valid JSON, wrapped in function call
- Send JSON encoded payloads without re-marshalling them?
- Add a separate `BufferLimitBytes` option to limit memory usage
- Update README to describe Config parameters clearly HOT 1
- How to forward output plugin records HOT 3
- Passing struct pointers to `Post` method HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluent-logger-golang.