diff --git a/packages/ti_misp/changelog.yml b/packages/ti_misp/changelog.yml index 56ae6a5c76c..5bb2fcbb108 100644 --- a/packages/ti_misp/changelog.yml +++ b/packages/ti_misp/changelog.yml @@ -1,4 +1,9 @@ # newer versions go on top +- version: "1.35.7" + changes: + - description: Set request rate limits. + type: bugfix + link: https://github.com/elastic/integrations/pull/11641 - version: "1.35.6" changes: - description: Fix the processing of ISO8601 dates. diff --git a/packages/ti_misp/data_stream/threat/agent/stream/httpjson.yml.hbs b/packages/ti_misp/data_stream/threat/agent/stream/httpjson.yml.hbs index 2ba23923fb4..2cda53d2b7c 100644 --- a/packages/ti_misp/data_stream/threat/agent/stream/httpjson.yml.hbs +++ b/packages/ti_misp/data_stream/threat/agent/stream/httpjson.yml.hbs @@ -14,6 +14,9 @@ request.ssl: {{ssl}} {{#if http_client_timeout}} request.timeout: {{http_client_timeout}} {{/if}} +{{#if http_request_rate_limit}} +request.rate_limit.limit: "{{http_request_rate_limit}}" +{{/if}} {{#if proxy_url}} request.proxy_url: {{proxy_url}} {{/if}} diff --git a/packages/ti_misp/data_stream/threat/manifest.yml b/packages/ti_misp/data_stream/threat/manifest.yml index 918080214b1..7dda85fcff5 100644 --- a/packages/ti_misp/data_stream/threat/manifest.yml +++ b/packages/ti_misp/data_stream/threat/manifest.yml @@ -43,6 +43,14 @@ streams: required: false show_user: false default: 30s + - name: http_request_rate_limit + type: text + title: HTTP Request Rate limit + description: "The maximum per endpoint request rate, in requests per second (e.g. 0.5 reqs/sec for 30 reqs/min). Controlling the rate limit may help with the processing of large responses from the MISP API." + default: 1 + multi: false + required: false + show_user: false - name: filters type: yaml title: MISP API Filters diff --git a/packages/ti_misp/data_stream/threat_attributes/agent/stream/httpjson.yml.hbs b/packages/ti_misp/data_stream/threat_attributes/agent/stream/httpjson.yml.hbs index 01dae70f968..03fd4eb3c39 100644 --- a/packages/ti_misp/data_stream/threat_attributes/agent/stream/httpjson.yml.hbs +++ b/packages/ti_misp/data_stream/threat_attributes/agent/stream/httpjson.yml.hbs @@ -14,6 +14,9 @@ request.ssl: {{ssl}} {{#if http_client_timeout}} request.timeout: {{http_client_timeout}} {{/if}} +{{#if http_request_rate_limit}} +request.rate_limit.limit: "{{http_request_rate_limit}}" +{{/if}} {{#if proxy_url}} request.proxy_url: {{proxy_url}} {{/if}} diff --git a/packages/ti_misp/data_stream/threat_attributes/manifest.yml b/packages/ti_misp/data_stream/threat_attributes/manifest.yml index f9c1340eaa2..ecabb369c58 100644 --- a/packages/ti_misp/data_stream/threat_attributes/manifest.yml +++ b/packages/ti_misp/data_stream/threat_attributes/manifest.yml @@ -52,6 +52,14 @@ streams: required: false show_user: false default: 30s + - name: http_request_rate_limit + type: text + title: HTTP Request Rate limit + description: "The maximum per endpoint request rate, in requests per second (e.g. 0.5 reqs/sec for 30 reqs/min). Controlling the rate limit may help with the processing of large responses from the MISP API." + default: 1 + multi: false + required: false + show_user: false - name: filters type: yaml title: MISP API Filters diff --git a/packages/ti_misp/manifest.yml b/packages/ti_misp/manifest.yml index d16bf4281cb..8ca69312eee 100644 --- a/packages/ti_misp/manifest.yml +++ b/packages/ti_misp/manifest.yml @@ -1,6 +1,6 @@ name: ti_misp title: MISP -version: "1.35.6" +version: "1.35.7" description: Ingest threat intelligence indicators from MISP platform with Elastic Agent. type: integration format_version: "3.0.2"