Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions client/inputs_http_event_collector.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package client

import (
"github.com/splunk/terraform-provider-splunk/client/models"
"net/http"

"github.com/splunk/terraform-provider-splunk/client/models"

"github.com/google/go-querystring/query"
)

Expand Down Expand Up @@ -60,7 +61,7 @@ func (client *Client) DeleteHttpEventCollectorObject(name, owner, app string) (*

// services/data/inputs/http
func (client *Client) ReadAllHttpEventCollectorObject() (*http.Response, error) {
endpoint := client.BuildSplunkURL(nil, "servicesNS", "-", "-", "data", "inputs", "http")
endpoint := client.BuildSplunkURL(nil, "servicesNS", "nobody", "search", "data", "inputs", "http")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With HEC inputs being in the global context, they don't really need a namespace. This could potentially be:

endpoint := client.BuildSplunkURL(nil, "services", "data", "inputs", "http")

resp, err := client.Get(endpoint)
if err != nil {
return nil, err
Expand Down