Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
Use Telegraf as value for graylog x-requested-by header
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson committed Nov 29, 2018
1 parent ba612b6 commit fc7fba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/graylog/graylog.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit fc7fba9

Please sign in to comment.