Skip to content

Commit

Permalink
fix(sematext sink): Fix EU endpoint and docs (vectordotdev#1657)
Browse files Browse the repository at this point in the history
Signed-off-by: Lucio Franco <[email protected]>
  • Loading branch information
LucioFranco authored Jan 31, 2020
1 parent 0a8b0c8 commit c1bf8b9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .meta/sinks/sematext.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ write_to_description = "[Sematext][urls.sematext] via the [Elasticsearch API][ur
type = "string"
required = true
examples = ["north_america", "europe"]
description = "The cloud destination to send logs too."
description = "The cloud destination to send logs to."

[sinks.sematext.options.token]
type = "string"
Expand Down
2 changes: 1 addition & 1 deletion config/vector.spec.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4490,7 +4490,7 @@ end
# * type: [string]
inputs = ["my-source-id"]

# The cloud destination to send logs too.
# The cloud destination to send logs to.
#
# * required
# * type: string
Expand Down
2 changes: 1 addition & 1 deletion src/sinks/sematext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl SinkConfig for SematextConfig {
fn build(&self, cx: SinkContext) -> crate::Result<(super::RouterSink, super::Healthcheck)> {
let mut host = match &self.cloud {
Cloud::NorthAmerica => "https://logsene-receiver.sematext.com".to_string(),
Cloud::Europe => "https://logsene-receiver.sematext.com".to_string(),
Cloud::Europe => "https://logsene-receiver.eu.sematext.com".to_string(),
};

// Test workaround for settings a custom host so we can test the body manually
Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/sinks/sematext.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ The behavior when the buffer becomes full.
### cloud

The cloud destination to send logs too.
The cloud destination to send logs to.


</Field>
Expand Down

0 comments on commit c1bf8b9

Please sign in to comment.