Skip to content

Commit 4310c0b

Browse files
committed
changed to Splunk config file
1 parent e4c2f1c commit 4310c0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rtapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ func sendJsonToSplunk(endpoints []endpointDetails, splunkSettings splunkSettings
373373
//log.Print(splunkSettings.Url)
374374
//log.Print(splunkSettings.Authkey)
375375

376-
req, err := http.NewRequest("GET", splunkSettings.Url, bytes.NewBuffer(jsonStr))
376+
req, err := http.NewRequest("POST", splunkSettings.Url, bytes.NewBuffer(jsonStr))
377377

378378
req.Header.Add("Authorization", splunkSettings.Authkey)
379379
req.Header.Set("Content-Type", "application/json")

0 commit comments

Comments
 (0)