Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not send to graylog #53

Open
vsokolovsky555 opened this issue Sep 4, 2020 · 1 comment
Open

Not send to graylog #53

vsokolovsky555 opened this issue Sep 4, 2020 · 1 comment

Comments

@vsokolovsky555
Copy link

Not send to graylog if field name = duration
Like this:

logFields := map[string]interface{}{
				"method":       r.Method,
				"url":          r.URL.Path + "?" + r.URL.RawQuery,
				"duration":    fmt.Sprintf("%f seconds", time.Since(startTime).Seconds()),
				"datetime":     startTime,
			}
@gravis
Copy link
Member

gravis commented Sep 4, 2020

I don't see why it would not log when a "duration" field is used.
Are you saying the field is not logged? Nothing is sent to Graylog? Do you have anything in the logs?
It's a bit hard to figure out what's going on there without more details.

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants