gemnasium / logrus-graylog-hook

Graylog hook for logrus
MIT License
87 stars 63 forks source link

Fix status code test when posting to graylog #59

Closed gravis closed 1 year ago

gravis commented 1 year ago

When sending HTTP posts to graylog, the status code returned is 202 (accepted) and not 204 (no-content), according to https://go2docs.graylog.org/5-0/getting_in_log_data/ingest_gelf.html (and for versions 4.x and 3.x and below).

closes #58