This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch 4.8.x
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/4.8.x by this push:
new 16305bd3 Camel Splunk Hec: Token is not part of the URI, it's an
endpoint parameter (#2320)
16305bd3 is described below
commit 16305bd323f5895b40368d8e99398ecaf5cf3e15
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Dec 17 18:36:25 2024 +0100
Camel Splunk Hec: Token is not part of the URI, it's an endpoint parameter
(#2320)
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 35547913..891b31b6 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 35547913..891b31b6 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}}"