You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[HTTPJSON] fixing config fields in manifest.yml not working as intended (#2815)
* fixing config fields in manifest.yml * ensure oauth2 is not added when not used * updating some tests * making sure processors are templated the same way as the rest of the packages * fixing changelog and changing manifest descriptions
A cursor is used to keep state between each API request, and can be set to for example the value of something in the response body.
141
-
More information can be found in the [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-httpjson.html#cursor)
141
+
More information can be found in the [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-httpjson.html#cursor).
142
142
show_user: true
143
143
multi: false
144
144
required: false
@@ -154,47 +154,152 @@ streams:
154
154
show_user: false
155
155
default: |
156
156
#verification_mode: none
157
-
- name: request_custom
157
+
- name: request_encode_as
158
+
type: text
159
+
title: Request Encode As
160
+
description: ContentType used for encoding the request body. If set it will force the encoding in the specified format regardless of the Content-Type header value.
161
+
show_user: false
162
+
multi: false
163
+
required: false
164
+
- name: request_timeout
165
+
type: text
166
+
title: Request Timeout
167
+
description: Duration before declaring that the HTTP client connection has timed out. Valid time units are ns, us, ms, s, m, h. Default is "30"s.
168
+
show_user: false
169
+
multi: false
170
+
required: false
171
+
- name: request_proxy_url
172
+
type: text
173
+
title: Request Proxy
174
+
description: This specifies proxy configuration in the form of `http[s]://<user>:<password>@<server name/ip>:<port>`.
175
+
show_user: false
176
+
multi: false
177
+
required: false
178
+
- name: request_retry_max_attempts
179
+
type: text
180
+
title: Request Retry Max Attempts
181
+
description: The maximum number of retries for the HTTP client. Default is "5".
182
+
show_user: false
183
+
multi: false
184
+
required: false
185
+
- name: request_retry_wait_min
186
+
type: text
187
+
title: Request Retry Wait Min
188
+
description: The minimum time to wait before a retry is attempted. Default is "1s".
189
+
show_user: false
190
+
multi: false
191
+
required: false
192
+
- name: request_retry_wait_max
193
+
type: text
194
+
title: Request Retry Wait Max
195
+
description: The maximum time to wait before a retry is attempted. Default is "60s".
196
+
show_user: false
197
+
multi: false
198
+
required: false
199
+
- name: request_redirect_forward_headers
200
+
type: bool
201
+
title: Request Redirect Forward Headers
202
+
description: When set to true request headers are forwarded in case of a redirect. Default is "false".
203
+
show_user: false
204
+
multi: false
205
+
required: false
206
+
- name: request_redirect_headers_ban_list
207
+
type: text
208
+
title: Request Redirect Headers Ban List
209
+
description: When Redirect Forward Headers is set to true, all headers except the ones defined in this list will be forwarded. All headers are forwarded by default.
210
+
show_user: false
211
+
multi: true
212
+
required: false
213
+
- name: request_redirect_max_redirects
214
+
type: text
215
+
title: Request Redirect Max Redirects
216
+
description: The maximum number of redirects to follow for a request. Default is "10".
217
+
show_user: false
218
+
multi: false
219
+
required: false
220
+
- name: request_rate_limit_limit
221
+
type: text
222
+
title: Request Rate Limit
223
+
description: The value of the response that specifies the total limit. It is defined with a Go template value.
224
+
show_user: false
225
+
multi: false
226
+
required: false
227
+
- name: request_rate_limit_reset
228
+
type: text
229
+
title: Request Rate Limit Reset
230
+
description: The value of the response that specifies the epoch time when the rate limit will reset. It is defined with a Go template value.
231
+
show_user: false
232
+
multi: false
233
+
required: false
234
+
- name: request_rate_limit_remaining
235
+
type: text
236
+
title: Request Rate Limit Remaining
237
+
description: The value of the response that specifies the remaining quota of the rate limit. It is defined with a Go template value.
238
+
show_user: false
239
+
multi: false
240
+
required: false
241
+
- name: oauth_provider
242
+
type: text
243
+
title: Oauth2 Provider
244
+
description: Used to configure supported oauth2 providers. Each supported provider will require specific settings. It is not set by default. Supported providers are "azure" and "google".
245
+
show_user: false
246
+
multi: false
247
+
required: false
248
+
- name: oauth_scopes
158
249
type: yaml
159
-
title: Request Custom settings
160
-
description: Optional Requests settings, comment out the ones to override, more information found in the httpjson [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-httpjson.html#_request_url)
250
+
title: Oauth2 Scopes
251
+
description: A list of scopes that will be requested during the oauth2 flow. It is optional for all providers.
252
+
show_user: false
253
+
multi: true
254
+
required: false
255
+
- name: oauth_google_credentials_file
256
+
type: text
257
+
title: Oauth2 Google Credentials File
258
+
description: The full path to the credentials file for Google.
description: Your Google credentials information as raw JSON.
266
+
show_user: false
267
+
multi: false
268
+
required: false
269
+
- name: oauth_google_jwt_file
270
+
type: text
271
+
title: Oauth2 Google JWT File
272
+
description: Full path to the JWT Account Key file for Google.
273
+
show_user: false
274
+
multi: false
275
+
required: false
276
+
- name: oauth_azure_tenant_id
277
+
type: text
278
+
title: Oauth2 Azure Tenant ID
279
+
description: Optional setting used for authentication when using Azure provider. Since it is used in the process to generate the token_url, it can’t be used in combination with it.
280
+
show_user: false
281
+
multi: false
282
+
required: false
283
+
- name: oauth_azure_resource
284
+
type: text
285
+
title: Oauth2 Azure Resource
286
+
description: Optional setting for the accessed WebAPI resource when using azure provider.
287
+
show_user: false
288
+
multi: false
289
+
required: false
290
+
- name: oauth_endpoint_params
178
291
type: yaml
179
-
title: Oauth2 Custom settings
180
-
description: Optional Oauth2 settings, comment out the ones to override, more information found in the httpjson [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-httpjson.html#_auth_oauth2_enabled)
292
+
title: Oauth2 Endpoint Params
293
+
description: Set of values that will be sent on each request to the token_url. Each param key can have multiple values. Can be set for all providers except google.
0 commit comments