Skip to content

Commit

Permalink
Update server_url defaults for Graylog 2.1.x
Browse files Browse the repository at this point in the history
The default URI for the Graylog REST API changed to http://127.0.0.1:9000/api/
  • Loading branch information
Jochen Schalanda committed Sep 1, 2016
1 parent bab7211 commit fa81c61
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ There are a couple of configuration settings for the Sidecar:

| Parameter | Description |
|-------------------|---------------------------------------------------------------------------------------------------------------------------------------|
| server_url | URL to the Graylog API, e.g. `http://127.0.0.1:12900` |
| server_url | URL to the Graylog API, e.g. `http://127.0.0.1:9000/api/` |
| update_interval | The interval in seconds the sidecar will fetch new configurations from the Graylog server |
| tls_skip_verify | Ignore errors when the REST API was started with a self-signed certificate |
| send_status | Send the status of each backend back to Graylog and display it on the status page for the host |
Expand Down
2 changes: 1 addition & 1 deletion api/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
var log = common.Log()

const (
defaultBaseURL = "http://127.0.0.1:12900/"
defaultBaseURL = "http://127.0.0.1:9000/api/"
userAgent = "Graylog Collector v" + common.CollectorVersion
mediaType = "application/json"
)
Expand Down
2 changes: 1 addition & 1 deletion collector_sidecar.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
server_url: http://127.0.0.1:12900
server_url: http://127.0.0.1:9000/api/
update_interval: 10
tls_skip_verify: false
send_status: true
Expand Down
2 changes: 1 addition & 1 deletion collector_sidecar_windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
server_url: http://127.0.0.1:12900
server_url: http://127.0.0.1:9000/api/
update_interval: 10
tls_skip_verify: false
send_status: true
Expand Down
2 changes: 1 addition & 1 deletion context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (ctx *Ctx) LoadConfig(path *string) error {
// server_url
ctx.ServerUrl, err = url.Parse(ctx.UserConfig.ServerUrl)
if err != nil || ctx.ServerUrl.Scheme == "" || ctx.ServerUrl.Host == "" {
log.Fatal("Server-url is not valid. Should be like http://127.0.0.1:12900 ", err)
log.Fatal("Server-url is not valid. Should be like http://127.0.0.1:9000/api/ ", err)
}
if ctx.UserConfig.ServerUrl == "" {
log.Fatalf("Server-url is empty.")
Expand Down

0 comments on commit fa81c61

Please sign in to comment.