diff --git a/api/rest/rest.go b/api/rest/rest.go index cd5dfa7..da1337c 100644 --- a/api/rest/rest.go +++ b/api/rest/rest.go @@ -35,6 +35,7 @@ import ( var ( log = logger.Log() userAgent = "Graylog Collector v" + common.CollectorVersion + customRequestHeader = "sidecar" ) const ( @@ -130,6 +131,7 @@ func (c *Client) NewRequest(method, urlStr string, params map[string]string, bod req.Header.Add("Accept", mediaType) req.Header.Add("User-Agent", userAgent) req.Header.Add("X-Graylog-Collector-Version", common.CollectorVersion) + req.Header.Add("X-Requested-By", customRequestHeader) return req, nil }