From 9b0430f809b9b2d5deb4398d431f38e1e2be3569 Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Wed, 11 Mar 2026 14:33:21 +0000 Subject: [PATCH] Add component definition: splunk-hec --- component.json | 274 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 274 insertions(+) create mode 100644 component.json diff --git a/component.json b/component.json new file mode 100644 index 0000000..14e04bf --- /dev/null +++ b/component.json @@ -0,0 +1,274 @@ +{ + "component": { + "kind": "component", + "name": "splunk-hec", + "title": "Splunk HEC", + "description": "The splunk component allows publishing events in Splunk using the HTTP Event Collector.", + "deprecated": false, + "firstVersion": "3.3.0", + "label": "monitoring", + "javaType": "org.apache.camel.component.splunkhec.SplunkHECComponent", + "supportLevel": "Stable", + "groupId": "org.apache.camel", + "artifactId": "camel-splunk-hec", + "version": "4.10.2", + "scheme": "splunk-hec", + "extendsScheme": "", + "syntax": "splunk-hec:splunkURL", + "async": false, + "api": false, + "consumerOnly": false, + "producerOnly": true, + "lenientProperties": false, + "browsable": false, + "remote": true + }, + "headers": { + "CamelSplunkHECIndexTime": { + "index": 0, + "kind": "header", + "displayName": "", + "group": "producer", + "label": "", + "required": false, + "javaType": "Long", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "Epoch-formatted time. Specify with the time query string parameter. Sets a default for all events in the request. The default time can be overridden.", + "constantName": "org.apache.camel.component.splunkhec.SplunkHECConstants#INDEX_TIME" + } + }, + "properties": { + "splunkURL": { + "index": 0, + "kind": "path", + "displayName": "Splunk URL", + "group": "producer", + "label": "", + "required": true, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "Splunk Host and Port (example: my_splunk_server:8089)" + }, + "bodyOnly": { + "index": 1, + "kind": "parameter", + "displayName": "Body Only", + "group": "producer", + "label": "", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": false, + "configurationClass": "org.apache.camel.component.splunkhec.SplunkHECConfiguration", + "configurationField": "configuration", + "description": "Send only the message body" + }, + "headersOnly": { + "index": 2, + "kind": "parameter", + "displayName": "Headers Only", + "group": "producer", + "label": "", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": false, + "configurationClass": "org.apache.camel.component.splunkhec.SplunkHECConfiguration", + "configurationField": "configuration", + "description": "Send only message headers" + }, + "host": { + "index": 3, + "kind": "parameter", + "displayName": "Host", + "group": "producer", + "label": "", + "required": false, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "autowired": false, + "secret": false, + "configurationClass": "org.apache.camel.component.splunkhec.SplunkHECConfiguration", + "configurationField": "configuration", + "description": "Splunk host field of the event message. This is not the Splunk host to connect to." + }, + "index": { + "index": 4, + "kind": "parameter", + "displayName": "Index", + "group": "producer", + "label": "", + "required": false, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": "camel", + "configurationClass": "org.apache.camel.component.splunkhec.SplunkHECConfiguration", + "configurationField": "configuration", + "description": "Splunk index to write to" + }, + "source": { + "index": 5, + "kind": "parameter", + "displayName": "Source", + "group": "producer", + "label": "", + "required": false, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": "camel", + "configurationClass": "org.apache.camel.component.splunkhec.SplunkHECConfiguration", + "configurationField": "configuration", + "description": "Splunk source argument" + }, + "sourceType": { + "index": 6, + "kind": "parameter", + "displayName": "Source Type", + "group": "producer", + "label": "", + "required": false, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": "camel", + "configurationClass": "org.apache.camel.component.splunkhec.SplunkHECConfiguration", + "configurationField": "configuration", + "description": "Splunk sourcetype argument" + }, + "splunkEndpoint": { + "index": 7, + "kind": "parameter", + "displayName": "Splunk Endpoint", + "group": "producer", + "label": "", + "required": false, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": "/services/collector/event", + "configurationClass": "org.apache.camel.component.splunkhec.SplunkHECConfiguration", + "configurationField": "configuration", + "description": "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 Splunk8.0 /services/collector/eventauto_extract_timestamp=true Remember to utilize RAW{} for questionmarks or slashes in parameters." + }, + "sslContextParameters": { + "index": 8, + "kind": "parameter", + "displayName": "Ssl Context Parameters", + "group": "producer", + "label": "", + "required": false, + "type": "object", + "javaType": "org.apache.camel.support.jsse.SSLContextParameters", + "deprecated": false, + "autowired": false, + "secret": false, + "description": "SSL configuration" + }, + "time": { + "index": 9, + "kind": "parameter", + "displayName": "Time", + "group": "producer", + "label": "", + "required": false, + "type": "integer", + "javaType": "java.lang.Long", + "deprecated": false, + "autowired": false, + "secret": false, + "configurationClass": "org.apache.camel.component.splunkhec.SplunkHECConfiguration", + "configurationField": "configuration", + "description": "Time this even occurred. By default, the time will be when this event hits the splunk server." + }, + "lazyStartProducer": { + "index": 10, + "kind": "parameter", + "displayName": "Lazy Start Producer", + "group": "producer (advanced)", + "label": "producer,advanced", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": false, + "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing." + }, + "https": { + "index": 11, + "kind": "parameter", + "displayName": "Https", + "group": "security", + "label": "security", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": true, + "configurationClass": "org.apache.camel.component.splunkhec.SplunkHECConfiguration", + "configurationField": "configuration", + "description": "Contact HEC over https." + }, + "skipTlsVerify": { + "index": 12, + "kind": "parameter", + "displayName": "Skip Tls Verify", + "group": "security", + "label": "security", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": false, + "configurationClass": "org.apache.camel.component.splunkhec.SplunkHECConfiguration", + "configurationField": "configuration", + "description": "Splunk HEC TLS verification." + }, + "token": { + "index": 13, + "kind": "parameter", + "displayName": "Token", + "group": "security", + "label": "security", + "required": true, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": true, + "configurationClass": "org.apache.camel.component.splunkhec.SplunkHECConfiguration", + "configurationField": "configuration", + "description": "Splunk HEC token (this is the token created for HEC and not the user's token)" + } + } +} \ No newline at end of file