Skip to content

Commit

Permalink
[proofpoint_on_demand] - Added support for configurable retry options (
Browse files Browse the repository at this point in the history
…#12103)

*Added support for configurable retry options which was introduced in 8.16
  • Loading branch information
ShourieG authored Dec 16, 2024
1 parent 53e2c5a commit 9b83436
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 3 deletions.
5 changes: 5 additions & 0 deletions packages/proofpoint_on_demand/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.2.0"
changes:
- description: Added support for configurable retry options which was introduced in 8.16.
type: enhancement
link: https://github.com/elastic/integrations/pull/12103
- version: "1.1.0"
changes:
- description: Add "preserve_original_event" tag to documents with `event.kind` set to "pipeline_error".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ program: |
"message": body.encode_json(),
}
})
{{#if max_reconnect_attempts}}
retry.max_attempts: {{max_reconnect_attempts}}
{{/if}}
{{#if min_wait_time}}
retry.wait_min: {{min_wait_time}}
{{/if}}
{{#if max_wait_time}}
retry.wait_max: {{max_wait_time}}
{{/if}}
tags:
{{#if preserve_original_event}}
- preserve_original_event
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@
type: group
fields:
- name: sendMailSearch
type: keyword
type: keyword
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ program: |
"message": body.encode_json(),
}
})
{{#if max_reconnect_attempts}}
retry.max_attempts: {{max_reconnect_attempts}}
{{/if}}
{{#if min_wait_time}}
retry.wait_min: {{min_wait_time}}
{{/if}}
{{#if max_wait_time}}
retry.wait_max: {{max_wait_time}}
{{/if}}
tags:
{{#if preserve_original_event}}
- preserve_original_event
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ program: |
"message": body.encode_json(),
}
})
{{#if max_reconnect_attempts}}
retry.max_attempts: {{max_reconnect_attempts}}
{{/if}}
{{#if min_wait_time}}
retry.wait_min: {{min_wait_time}}
{{/if}}
{{#if max_wait_time}}
retry.wait_max: {{max_wait_time}}
{{/if}}
tags:
{{#if preserve_original_event}}
- preserve_original_event
Expand Down
28 changes: 26 additions & 2 deletions packages/proofpoint_on_demand/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
format_version: 3.1.4
name: proofpoint_on_demand
title: Proofpoint On Demand
version: 1.1.0
version: 1.2.0
description: Collect logs from Proofpoint On Demand with Elastic Agent.
type: integration
categories:
- security
conditions:
kibana:
version: ^8.13.0
version: ^8.16.0
elastic:
subscription: basic
icons:
Expand Down Expand Up @@ -62,6 +62,30 @@ policy_templates:
required: true
show_user: true
secret: true
- name: max_reconnect_attempts
type: integer
title: Maximum Reconnect Attempts
description: The maximum number of times the agent will attempt to reconnect to the websocket endpoint if the connection is lost before giving up.
multi: false
required: false
show_user: true
default: 5
- name: min_wait_time
type: text
title: Minimum Wait Time
description: "The minimum amount of time the agent will wait before attempting to reconnect to the websocket endpoint if the connection is lost. \nThis is a time duration value. Examples, 1s, 1m, 1h.\n"
multi: false
required: false
show_user: true
default: 1s
- name: max_wait_time
type: text
title: Maximum Wait Time
description: "The maximum amount of time the agent will wait before attempting to reconnect to the websocket endpoint if the connection is lost. \nThis is a time duration value. Examples, 1s, 1m, 1h.\n"
multi: false
required: false
show_user: true
default: 180s
owner:
github: elastic/security-service-integrations
type: elastic

0 comments on commit 9b83436

Please sign in to comment.