This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/main by this push:
new 7225fde1 Camel Splunk Hec: Token is not part of the URI, it's an
endpoint parameter (#2319)
7225fde1 is described below
commit 7225fde1fdc70189e7dff697832175421e4c8eb8
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Dec 17 18:35:34 2024 +0100
Camel Splunk Hec: Token is not part of the URI, it's an endpoint parameter
(#2319)
Signed-off-by: Andrea Cosentino <[email protected]>
---
kamelets/splunk-hec-sink.kamelet.yaml | 3 ++-
.../src/main/resources/kamelets/splunk-hec-sink.kamelet.yaml | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/kamelets/splunk-hec-sink.kamelet.yaml
b/kamelets/splunk-hec-sink.kamelet.yaml
index dfa07208..f0dbf229 100644
--- a/kamelets/splunk-hec-sink.kamelet.yaml
+++ b/kamelets/splunk-hec-sink.kamelet.yaml
@@ -102,9 +102,10 @@ spec:
uri: "kamelet:source"
steps:
- to:
- uri: "splunk-hec:{{splunkUrl}}/{{token}}"
+ uri: "splunk-hec:{{splunkUrl}}"
parameters:
host: "{{?hostPayload}}"
+ token: "{{token}}"
bodyOnly: "{{?bodyOnly}}"
headersOnly: "{{?headersOnly}}"
index: "{{?index}}"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/splunk-hec-sink.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/splunk-hec-sink.kamelet.yaml
index dfa07208..f0dbf229 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/splunk-hec-sink.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/splunk-hec-sink.kamelet.yaml
@@ -102,9 +102,10 @@ spec:
uri: "kamelet:source"
steps:
- to:
- uri: "splunk-hec:{{splunkUrl}}/{{token}}"
+ uri: "splunk-hec:{{splunkUrl}}"
parameters:
host: "{{?hostPayload}}"
+ token: "{{token}}"
bodyOnly: "{{?bodyOnly}}"
headersOnly: "{{?headersOnly}}"
index: "{{?index}}"