-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsplunk-source.kamelet.yaml
143 lines (141 loc) · 7.65 KB
/
splunk-source.kamelet.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
apiVersion: camel.apache.org/v1alpha1
kind: Kamelet
metadata:
name: splunk-source
annotations:
camel.apache.org/catalog.version: "1.10.10"
camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHJvbGU9ImltZyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+U3BsdW5rIGljb248L3RpdGxlPjxwYXRoIGQ9Ik0yMy4zNDggMTEuOTExbC0yLjI0MS0xLjA5MXYtLjY1TDI0IDExLjYyMXYuNTkzbC0yLjg5MyAxLjQzOHYtLjYzNnptLTUuMzk3IDEuODQxaC0uOTYxdi01LjMxaC45NjF2My4xMTZoLjEwMmwxLjI4LTEuNDgxLjcyMy4zMS0xLjIzIDEuMzE2IDEuNDUzIDEuODA5LS44ODguMzExLTEuNDQtMS45OTZ6bS0yLjU3Ny0uMDAydi0yLjA2OGEyLjY4NSAyLjY4NSAwIDAgMC0uMDI2LS40Mi43OTEuNzkxIDAgMCAwLS4wOS0uMjZjLS4xMTMtLjIwMi0uMzA4LS4zMDQtLjU5LS4zMDRhLjg4OC44ODggMCAwIDAtLjQ2MS4xMTMuNj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IDAgLjE0LS4zMjIuNDc1LjQ3NSAwIDAgMC0uMTItLjMxOCAxLjMwNiAxLjMwNiAwIDAgMC0uMTg3LS4xNzMgOS4yMzEgOS4yMzEgMCAwIDAtLjMwOC0uMjMyIDYuNzg3IDYuNzg3IDAgMCAxLS4yODEtLjIxIDIuMTEgMi4xMSAwIDAgMS0uMjUyLS4yMzIgMS4wMzkgMS4wMzkgMCAwIDEtLjE4LS4yNzUuODI2LjgyNiAwIDAgMS0uMDY5LS4zNDcuODkzLjg5MyAwIDAgMSAuMDk0LS40MDkuOTM1LjkzNSAwIDAgMSAuMjU1LS4zMTQgMS4yMiAxLjIyIDAgMCAxIC4zOS0uMjAzYy4xNi0uMDUuMzI3LS4wNzQuNDk0LS4wNzIuMTg0IDAgLjM2OC4wMjYuNTQ1LjA3Ni4xNzQuMDUuMzM4LjEyMy40ODguMjE5bC0uMjgyLjQ1NGExLjA1IDEuMDUgMCAwIDAtLjYwOC0uMjAxLjUwNC41MDQgMCAwIDAtLjMyMy4xMDIuMzA3LjMwNyAwIDAgMC0uMTI2LjI1M2MwIC4wOTguMDQxLjE5My4xMTMuMjYuMDc0LjA3OC4yMDMuMTg2LjM4NS4zMjUuMTg1LjEzNi4zMzYuMjUzLjQ1Ny4zNTUuMTA0LjA4NS4yMDIuMTgyLjI4Ni4yODYuMDY1LjA4LjExNS4xNzMuMTQ1LjI3M2EuODA4LjgwOCAwIDAgMSAuMDQ2LjI5OVoiLz48L3N2Zz4="
camel.apache.org/provider: "Red Hat"
camel.apache.org/kamelet.group: "SPLUNK"
labels:
camel.apache.org/kamelet.type: "source"
spec:
definition:
title: "Splunk Source"
description: |-
Retrieve data from Splunk and outputs in json format.
For the fields accepting time specifiers like `earliestTime`, it accepts a wide variety of formats, please check https://docs.splunk.com/Documentation/Splunk/9.0.0/Search/Specifytimemodifiersinyoursearch[Splunk documentation] for more information.
required:
- serverHostname
- username
- password
- query
- initEarliestTime
type: object
properties:
serverHostname:
title: Splunk Server Address
description: The address of your Splunk server.
type: string
example: my_server_splunk.com
serverPort:
title: Splunk Server Port
description: The address of your Splunk server.
type: integer
default: 8089
username:
title: Username
description: The username to authenticate to Splunk Server.
type: string
password:
title: Password
description: The password to authenticate to Splunk Server.
type: string
format: password
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:password
- urn:camel:group:credentials
index:
title: Index
description: Splunk index to write to.
type: string
protocol:
title: Protocol
description: Connection Protocol to Splunk server.
type: string
default: https
enum: ["http", "https"]
source:
title: Source
description: The source named field of the data.
type: string
sourceType:
title: Source Type
description: The source named field of the data.
type: string
app:
title: Splunk App
description: The app name in Splunk.
type: string
connectionTimeout:
title: Connection Timeout
description: Timeout in milliseconds when connecting to Splunk server
type: integer
count:
title: Count
description: The maximum number of entities to return.
type: integer
repeat:
title: Repeat
description: The maximum number of fires.
type: integer
delay:
title: Delay
description: Milliseconds before the next poll.
type: integer
query:
title: Query
description: The Splunk query to run.
type: string
earliestTime:
title: Earliest Time
description: Earliest time of the search time window.
type: string
example: "05/17/22 08:35:46:456"
initEarliestTime:
title: Init Earliest Time
description: Initial start offset of the first search.
type: string
example: "05/17/22 08:35:46:456"
latestTime:
title: Latest Time
description: Latest time of the search time window.
type: string
example: "05/17/22 08:35:46:456"
types:
out:
mediaType: application/json
dependencies:
- "camel:jackson"
- "camel:core"
- "camel:splunk"
- "camel:kamelet"
- "mvn:com.fasterxml.jackson.datatype:jackson-datatype-joda:2.12.4.redhat-00001"
template:
from:
uri: "splunk:normal"
parameters:
host: "{{serverHostname}}"
port: "{{serverPort}}"
username: "{{username}}"
password: "{{password}}"
index: "{{?index}}"
scheme: "{{?protocol}}"
source: "{{?source}}"
sourceType: "{{?sourceType}}"
app: "{{?app}}"
connectionTimeout: "{{?connectionTimeout}}"
count: "{{?count}}"
repeatCount: "{{?repeat}}"
delay: "{{?delay}}"
search: "{{?query}}"
earliestTime: "{{?earliestTime}}"
initEarliestTime: "{{initEarliestTime}}"
latestTime: "{{?latestTime}}"
raw: true
steps:
- marshal:
json:
library: Jackson
module-class-names: com.fasterxml.jackson.datatype.joda.JodaModule
- to: "kamelet:sink"