Skip to content

Commit

Permalink
all: limit request tracer log count to five
Browse files Browse the repository at this point in the history
Currently the request tracer log is configured to retain all logs. This
opens the risk of user filesystemes being filled with unwanted logs. So
limit the number of logs to five (picked as reasonably similar to the
number of logs retained by elastic-agent, although the logs are not
necessarily comparable in size or temporal domain).
  • Loading branch information
efd6 committed Nov 14, 2023
1 parent cf1e783 commit d3d7d1d
Show file tree
Hide file tree
Showing 372 changed files with 663 additions and 74 deletions.
5 changes: 5 additions & 0 deletions packages/1password/changelog.yml
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.26.0"
changes:
- description: Limit request tracer log count to five.
type: enhancement
link: https://github.com/elastic/integrations/pull/8489
- version: 1.25.0
changes:
- description: ECS version updated to 8.11.0.
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
request.url: {{url}}/api/v1/auditevents
request.method: POST
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
request.url: {{url}}/api/v1/itemusages
request.method: POST
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
request.url: {{url}}/api/v1/signinattempts
request.method: POST
Expand Down
2 changes: 1 addition & 1 deletion packages/1password/manifest.yml
@@ -1,7 +1,7 @@
format_version: "3.0.0"
name: 1password
title: "1Password"
version: "1.25.0"
version: "1.26.0"
description: Collect logs from 1Password with Elastic Agent.
type: integration
categories:
Expand Down
5 changes: 5 additions & 0 deletions packages/akamai/changelog.yml
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.21.0"
changes:
- description: Limit request tracer log count to five.
type: enhancement
link: https://github.com/elastic/integrations/pull/8489
- version: 2.20.0
changes:
- description: ECS version updated to 8.11.0.
Expand Down
Expand Up @@ -13,6 +13,7 @@ request.proxy_url: {{proxy_url}}
{{/if}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
request.transforms:
- set:
Expand Down
2 changes: 1 addition & 1 deletion packages/akamai/manifest.yml
@@ -1,6 +1,6 @@
name: akamai
title: Akamai
version: "2.20.0"
version: "2.21.0"
description: Collect logs from Akamai with Elastic Agent.
type: integration
format_version: "3.0.0"
Expand Down
5 changes: 5 additions & 0 deletions packages/apache/changelog.yml
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.17.0"
changes:
- description: Limit request tracer log count to five.
type: enhancement
link: https://github.com/elastic/integrations/pull/8489
- version: "1.16.0"
changes:
- description: Migrate Uptime metric visualization to lens.
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: "2"
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
{{#unless token}}
{{#if username}}
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
{{#unless token}}
{{#if username}}
Expand Down
2 changes: 1 addition & 1 deletion packages/apache/manifest.yml
@@ -1,7 +1,7 @@
format_version: 1.0.0
name: apache
title: Apache HTTP Server
version: "1.16.0"
version: "1.17.0"
license: basic
source:
license: Elastic-2.0
Expand Down
5 changes: 5 additions & 0 deletions packages/atlassian_bitbucket/changelog.yml
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.22.0"
changes:
- description: Limit request tracer log count to five.
type: enhancement
link: https://github.com/elastic/integrations/pull/8489
- version: 1.21.0
changes:
- description: ECS version updated to 8.11.0.
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: "2"
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
request.method: "GET"
request.url: {{api_url}}/rest/auditing/1.0/events
Expand Down
2 changes: 1 addition & 1 deletion packages/atlassian_bitbucket/manifest.yml
@@ -1,7 +1,7 @@
format_version: "3.0.0"
name: atlassian_bitbucket
title: Atlassian Bitbucket
version: "1.21.0"
version: "1.22.0"
description: Collect logs from Atlassian Bitbucket with Elastic Agent.
type: integration
categories:
Expand Down
5 changes: 5 additions & 0 deletions packages/atlassian_confluence/changelog.yml
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.23.0"
changes:
- description: Limit request tracer log count to five.
type: enhancement
link: https://github.com/elastic/integrations/pull/8489
- version: 1.22.0
changes:
- description: ECS version updated to 8.11.0.
Expand Down
Expand Up @@ -3,6 +3,7 @@ interval: {{interval}}
request.method: "GET"
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}

{{#if ssl}}
Expand Down
2 changes: 1 addition & 1 deletion packages/atlassian_confluence/manifest.yml
@@ -1,7 +1,7 @@
format_version: "3.0.0"
name: atlassian_confluence
title: Atlassian Confluence
version: "1.22.0"
version: "1.23.0"
description: Collect logs from Atlassian Confluence with Elastic Agent.
type: integration
categories:
Expand Down
5 changes: 5 additions & 0 deletions packages/atlassian_jira/changelog.yml
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.23.0"
changes:
- description: Limit request tracer log count to five.
type: enhancement
link: https://github.com/elastic/integrations/pull/8489
- version: 1.22.0
changes:
- description: ECS version updated to 8.11.0.
Expand Down
Expand Up @@ -3,6 +3,7 @@ interval: {{interval}}
request.method: "GET"
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
{{#if atlassian_cloud}}
request.url: {{api_url}}/rest/api/3/auditing/record
Expand Down
2 changes: 1 addition & 1 deletion packages/atlassian_jira/manifest.yml
@@ -1,7 +1,7 @@
format_version: "3.0.0"
name: atlassian_jira
title: Atlassian Jira
version: "1.22.0"
version: "1.23.0"
description: Collect logs from Atlassian Jira with Elastic Agent.
type: integration
categories:
Expand Down
5 changes: 5 additions & 0 deletions packages/aws/changelog.yml
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.9.0"
changes:
- description: Limit request tracer log count to five.
type: enhancement
link: https://github.com/elastic/integrations/pull/8489
- version: "2.8.6"
changes:
- description: Add missing fields from beats input
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
{{#unless token}}
{{#if username}}
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
request.url: https://guardduty.{{aws_region}}.{{tld}}/detector/{{detector_id}}/findings
request.method: POST
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
request.timeout: {{http_client_timeout}}
request.method: POST
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
request.timeout: 2m
request.method: POST
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
request.timeout: 2m
request.method: POST
Expand Down
2 changes: 1 addition & 1 deletion packages/aws/manifest.yml
@@ -1,7 +1,7 @@
format_version: 3.0.0
name: aws
title: AWS
version: 2.8.6
version: 2.9.0
description: Collect logs and metrics from Amazon Web Services (AWS) with Elastic Agent.
type: integration
categories:
Expand Down
5 changes: 5 additions & 0 deletions packages/bitdefender/changelog.yml
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.10.0"
changes:
- description: Limit request tracer log count to five.
type: enhancement
link: https://github.com/elastic/integrations/pull/8489
- version: 1.9.0
changes:
- description: ECS version updated to 8.11.0.
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
request.url: {{url}}
request.method: POST
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
request.url: {{url}}
request.method: POST
Expand Down
2 changes: 1 addition & 1 deletion packages/bitdefender/manifest.yml
@@ -1,7 +1,7 @@
format_version: "3.0.0"
name: bitdefender
title: "BitDefender"
version: "1.9.0"
version: "1.10.0"
source:
license: "Elastic-2.0"
description: "Ingest BitDefender GravityZone logs and data"
Expand Down
5 changes: 5 additions & 0 deletions packages/bitwarden/changelog.yml
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.10.0"
changes:
- description: Limit request tracer log count to five.
type: enhancement
link: https://github.com/elastic/integrations/pull/8489
- version: 1.9.0
changes:
- description: ECS version updated to 8.11.0.
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
request.method: GET
request.url: {{url}}/public/collections
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
request.method: GET
request.url: {{url}}/public/events
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
request.method: GET
request.url: {{url}}/public/groups
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
request.method: GET
request.url: {{url}}/public/members
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
request.method: GET
request.url: {{url}}/public/policies
Expand Down
2 changes: 1 addition & 1 deletion packages/bitwarden/manifest.yml
@@ -1,7 +1,7 @@
format_version: "3.0.0"
name: bitwarden
title: Bitwarden
version: "1.9.0"
version: "1.10.0"
source:
license: Elastic-2.0
description: Collect logs from Bitwarden with Elastic Agent.
Expand Down
5 changes: 5 additions & 0 deletions packages/box_events/changelog.yml
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.5.0"
changes:
- description: Limit request tracer log count to five.
type: enhancement
link: https://github.com/elastic/integrations/pull/8489
- version: 2.4.0
changes:
- description: ECS version updated to 8.11.0.
Expand Down
Expand Up @@ -2,6 +2,7 @@ config_version: 2
interval: "{{interval}}"
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
auth.oauth2:
client.id: "{{client_id}}"
Expand Down
2 changes: 1 addition & 1 deletion packages/box_events/manifest.yml
@@ -1,7 +1,7 @@
format_version: "3.0.0"
name: box_events
title: Box Events
version: "2.4.0"
version: "2.5.0"
description: "Collect logs from Box with Elastic Agent"
type: integration
categories:
Expand Down
5 changes: 5 additions & 0 deletions packages/carbon_black_cloud/changelog.yml
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.19.0"
changes:
- description: Limit request tracer log count to five.
type: enhancement
link: https://github.com/elastic/integrations/pull/8489
- version: 1.18.0
changes:
- description: ECS version updated to 8.11.0.
Expand Down
Expand Up @@ -4,6 +4,7 @@ request.timeout: 2m
request.method: POST
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}

{{#if proxy_url}}
Expand Down
Expand Up @@ -3,6 +3,7 @@ interval: {{interval}}
request.method: POST
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
{{#if proxy_url }}
request.proxy_url: {{proxy_url}}
Expand Down
Expand Up @@ -3,6 +3,7 @@ interval: {{interval}}
request.method: GET
{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}

{{#if proxy_url}}
Expand Down

0 comments on commit d3d7d1d

Please sign in to comment.