From fc7fba9020685c674013c61393011f5cccd59ed9 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Wed, 28 Nov 2018 16:52:40 -0800 Subject: [PATCH] Use Telegraf as value for graylog x-requested-by header --- plugins/inputs/graylog/graylog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/graylog/graylog.go b/plugins/inputs/graylog/graylog.go index 6e75f676a97b8..1e0439a421967 100644 --- a/plugins/inputs/graylog/graylog.go +++ b/plugins/inputs/graylog/graylog.go @@ -236,7 +236,7 @@ func (h *GrayLog) sendRequest(serverURL string) (string, float64, error) { return "", -1, fmt.Errorf("Invalid server URL \"%s\"", serverURL) } // Add X-Requested-By header - headers["X-Requested-By"] = requestURL.Hostname() + headers["X-Requested-By"] = "Telegraf" if strings.Contains(requestURL.String(), "multiple") { m := &Messagebody{Metrics: h.Metrics}