You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/11/26 12:41:45 UTC
[camel] branch main updated: Regen for commit 732a503b089d042b5bc1b5d10bc547380a77fca9 (#8781)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 608a71c3b37 Regen for commit 732a503b089d042b5bc1b5d10bc547380a77fca9 (#8781)
608a71c3b37 is described below
commit 608a71c3b37a3c432b9547fbfd9878c7c696de50
Author: github-actions[bot] <41...@users.noreply.github.com>
AuthorDate: Sat Nov 26 13:41:39 2022 +0100
Regen for commit 732a503b089d042b5bc1b5d10bc547380a77fca9 (#8781)
Signed-off-by: GitHub <no...@github.com>
Signed-off-by: GitHub <no...@github.com>
Co-authored-by: davsclaus <da...@users.noreply.github.com>
---
.../component/splunkhec/SplunkHECConfiguration.java | 17 +++++++----------
.../camel/component/splunkhec/SplunkHECProducer.java | 2 +-
2 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/components/camel-splunk-hec/src/main/java/org/apache/camel/component/splunkhec/SplunkHECConfiguration.java b/components/camel-splunk-hec/src/main/java/org/apache/camel/component/splunkhec/SplunkHECConfiguration.java
index 6d1695ce67b..60a3f234440 100644
--- a/components/camel-splunk-hec/src/main/java/org/apache/camel/component/splunkhec/SplunkHECConfiguration.java
+++ b/components/camel-splunk-hec/src/main/java/org/apache/camel/component/splunkhec/SplunkHECConfiguration.java
@@ -102,16 +102,14 @@ public class SplunkHECConfiguration {
}
/**
- * Splunk endpoint
- * Defaults to /services/collector/event
- * To write RAW data like JSON use /services/collector/raw
- * For a list of all endpoints refer to splunk documentation (HTTP Event Collector REST API endpoints)
- * Example for Spunk 8.2.x: https://docs.splunk.com/Documentation/SplunkCloud/8.2.2203/Data/HECRESTendpoints
+ * Splunk endpoint Defaults to /services/collector/event To write RAW data like JSON use /services/collector/raw For
+ * a list of all endpoints refer to splunk documentation (HTTP Event Collector REST API endpoints) Example for Spunk
+ * 8.2.x: https://docs.splunk.com/Documentation/SplunkCloud/8.2.2203/Data/HECRESTendpoints
*
- * To extract timestamps in Splunk>8.0 /services/collector/event?auto_extract_timestamp=true
- * Remember to utilize RAW{} for questionmarks or slashes in parameters, see:
- * https://camel.apache.org/manual/faq/how-do-i-configure-endpoints.html
- * #HowdoIconfigureendpoints-Configuringparametervaluesusingrawvalues
+ * To extract timestamps in Splunk>8.0 /services/collector/event?auto_extract_timestamp=true Remember to utilize
+ * RAW{} for questionmarks or slashes in parameters, see:
+ * https://camel.apache.org/manual/faq/how-do-i-configure-endpoints.html
+ * #HowdoIconfigureendpoints-Configuringparametervaluesusingrawvalues
*/
public void setSplunkEndpoint(String splunkEndpoint) {
this.splunkEndpoint = splunkEndpoint;
@@ -176,5 +174,4 @@ public class SplunkHECConfiguration {
this.time = time;
}
-
}
diff --git a/components/camel-splunk-hec/src/main/java/org/apache/camel/component/splunkhec/SplunkHECProducer.java b/components/camel-splunk-hec/src/main/java/org/apache/camel/component/splunkhec/SplunkHECProducer.java
index e1c5314ad04..3cdc7bc9be8 100644
--- a/components/camel-splunk-hec/src/main/java/org/apache/camel/component/splunkhec/SplunkHECProducer.java
+++ b/components/camel-splunk-hec/src/main/java/org/apache/camel/component/splunkhec/SplunkHECProducer.java
@@ -73,7 +73,7 @@ public class SplunkHECProducer extends DefaultProducer {
HttpPost httppost = new HttpPost(
(endpoint.getConfiguration().isHttps() ? "https" : "http") + "://"
- + endpoint.getSplunkURL() + endpoint.getConfiguration().getSplunkEndpoint());
+ + endpoint.getSplunkURL() + endpoint.getConfiguration().getSplunkEndpoint());
httppost.addHeader("Authorization", " Splunk " + endpoint.getToken());
EntityTemplate entityTemplate = new EntityTemplate(outputStream -> MAPPER.writer().writeValue(outputStream, payload));