Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions _database_api/logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ layout: default

--- row ---

`GET https://$DB_API_URL/dapi/databases/[:database_id]/logs`
`GET https://$DB_API_URL/api/databases/[:database_id]/logs`

{:.table}
| field | type | description |
Expand All @@ -36,6 +36,6 @@ Returns 200 OK

```json
{
"url": "https://logs.scalingo.com/apps/59e6641ab8c6f11f89d0b950/logs?token=authentication_token"
"url": "https://logs.shard-0.osc-fr1.scalingo.com/apps/59e6641ab8c6f11f89d0b950/logs?token=authentication_token"
}
```
2 changes: 1 addition & 1 deletion _scalingo_api/apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ Returns 200 OK
```json
{
"app": { … },
"logs_url": "https://logs.scalingo.com/apps/example-app/logs?token=0123456789"
"logs_url": "https://logs.shard-0.osc-fr1.scalingo.com/apps/example-app/logs?token=0123456789"
}
```

Expand Down
6 changes: 3 additions & 3 deletions _scalingo_api/logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ layout: default

## Dump and stream logs

`GET https://logs.scalingo.com/apps/[:app]/logs?token=[:token]`
`GET https://logs.shard-0.osc-fr1.scalingo.com/apps/[:app]/logs?token=[:token]`

To get an authenticated URL, see [Application#logs](/apps.html#access-to-the-application-logs)

Expand All @@ -31,7 +31,7 @@ The `filter` parameter can contain a container name (e.g. `web-1`), a container
Example request:

```sh
curl -X GET 'https://logs.scalingo.com/apps/example-app/logs?n=10'
curl -X GET 'https://logs.shard-0.osc-fr1.scalingo.com/apps/example-app/logs?n=10'
```

Response 200 OK
Expand Down Expand Up @@ -76,7 +76,7 @@ Websocket example:

```sh
curl -H "Connection: Upgrade" -H "Upgrade: websocket" -v \
-X GET 'https://logs.scalingo.com/apps/example-app/logs?n=0&stream=true'
-X GET 'https://logs.shard-0.osc-fr1.scalingo.com/apps/example-app/logs?n=0&stream=true'
```

Return 101 Switching Protocol
Expand Down