diff --git a/client/client.go b/client/client.go index 9d1c0c47..cb2a5d09 100644 --- a/client/client.go +++ b/client/client.go @@ -83,7 +83,11 @@ func (c *Client) BuildSplunkURL(queryValues url.Values, urlPathParts ...string) } queryValues.Set("output_mode", "json") - queryValues.Set("count", "-1") // To avoid http response truncation + + if !queryValues.Has("count") { + queryValues.Set("count", "-1") // To avoid http response truncation + } + httpScheme := getEnv(envVarHTTPScheme, defaultScheme) return url.URL{