Skip to content

Commit 0af81bc

Browse files
authored
Make example project work with cloud ingesting (#18)
* make example project work with cloud ingesting * make placeholders consistent
1 parent a7938bc commit 0af81bc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

example-project/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ bundle install
1212

1313
This will install all dependencies listed in the `Gemfile.lock` file.
1414

15-
Then replace `<SOURCE_TOKEN>` in `config.ru` with your actual source token which you can find by going to [Better Stack Logs](https://logs.betterstack.com/dashboard) -> Source -> Edit.
15+
Then replace `<source_token>` and `<ingesting_host>` in `config.ru` with your actual source token and ingesting host which you can find by going to [Better Stack Telemetry](https://teleemetry.betterstack.com/dashboard) -> Source -> Configure.
1616

1717
```ruby
18-
http_io_device = Logtail::LogDevices::HTTP.new("<YOUR_ACTUAL_SOURCE_TOKEN>")
18+
http_io_device = Logtail::LogDevices::HTTP.new("<source_token>", logtail_host: "<ingesting_host>")
1919
```
2020

2121
## Run the example project

example-project/config.ru

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use Logtail::Integrations::Rack::HTTPContext
66
use Logtail::Integrations::Rack::HTTPEvents
77
use Logtail::Integrations::Rack::ErrorEvent
88

9-
# HTTP IO device sends logs to Better Stack, replace <SOURCE_TOKEN> with your real source token
10-
http_io_device = Logtail::LogDevices::HTTP.new("<SOURCE_TOKEN>")
9+
# HTTP IO device sends logs to Better Stack, replace <source_token> and <ingesting_host> with your real source token and ingesting host
10+
http_io_device = Logtail::LogDevices::HTTP.new("<source_token>", logtail_host: "<ingesting_host>")
1111

1212
# STDOUT IO device sends logs to console output
1313
stdout_io_device = STDOUT

0 commit comments

Comments
 (0)