Skip to content

Commit

Permalink
Cloudflare Logpush: Add request tracing support (#12224)
Browse files Browse the repository at this point in the history
Add request trace logging to the Cloudflare Logpush integration.
  • Loading branch information
chemamartinez authored Jan 7, 2025
1 parent 38db94e commit 191eb51
Show file tree
Hide file tree
Showing 56 changed files with 240 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/cloudflare_logpush/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.30.0"
changes:
- description: Provide request tracing support.
type: enhancement
link: https://github.com/elastic/integrations/pull/12224
- version: "1.29.0"
changes:
- description: Add support for Access Point ARN when collecting logs via the AWS S3 Bucket.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ data_stream:
listen_port: 9560
preserve_original_event: true
preserve_duplicate_custom_fields: true
enable_request_tracer: true
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ ssl: {{ssl}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{#if enable_request_tracer}}
tracer.filename: "../../logs/http_endpoint/http-request-trace-*.ndjson"
tracer.maxbackups: 5
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ streams:
required: false
show_user: false
default: 10
- name: enable_request_tracer
type: bool
title: Enable request tracing
multi: false
required: false
show_user: false
description: >
The request tracer logs HTTP requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-http_endpoint.html#_tracer_enabled_3) for details.
- input: aws-s3
title: Access Request logs
description: Collect Access Request logs from Cloudflare via S3 or SQS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ data_stream:
listen_port: 9560
preserve_original_event: true
preserve_duplicate_custom_fields: true
enable_request_tracer: true
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ ssl: {{ssl}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{#if enable_request_tracer}}
tracer.filename: "../../logs/http_endpoint/http-request-trace-*.ndjson"
tracer.maxbackups: 5
{{/if}}
8 changes: 8 additions & 0 deletions packages/cloudflare_logpush/data_stream/audit/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ streams:
required: false
show_user: false
default: 10
- name: enable_request_tracer
type: bool
title: Enable request tracing
multi: false
required: false
show_user: false
description: >
The request tracer logs HTTP requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-http_endpoint.html#_tracer_enabled_3) for details.
- input: aws-s3
title: Audit logs
description: Collect Audit logs from Cloudflare via S3 or SQS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ data_stream:
listen_port: 9560
preserve_original_event: true
preserve_duplicate_custom_fields: true
enable_request_tracer: true
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ ssl: {{ssl}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{#if enable_request_tracer}}
tracer.filename: "../../logs/http_endpoint/http-request-trace-*.ndjson"
tracer.maxbackups: 5
{{/if}}
8 changes: 8 additions & 0 deletions packages/cloudflare_logpush/data_stream/casb/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ streams:
required: false
show_user: false
default: 10
- name: enable_request_tracer
type: bool
title: Enable request tracing
multi: false
required: false
show_user: false
description: >
The request tracer logs HTTP requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-http_endpoint.html#_tracer_enabled_3) for details.
- input: aws-s3
title: CASB Findings logs
description: Collect CASB Findings logs from Cloudflare via S3 or SQS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ data_stream:
listen_port: 9560
preserve_original_event: true
preserve_duplicate_custom_fields: true
enable_request_tracer: true
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ ssl: {{ssl}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{#if enable_request_tracer}}
tracer.filename: "../../logs/http_endpoint/http-request-trace-*.ndjson"
tracer.maxbackups: 5
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ streams:
required: false
show_user: false
default: 10
- name: enable_request_tracer
type: bool
title: Enable request tracing
multi: false
required: false
show_user: false
description: >
The request tracer logs HTTP requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-http_endpoint.html#_tracer_enabled_3) for details.
- input: aws-s3
title: Device Posture Results logs
description: Collect Device Posture Results logs from Cloudflare via S3 or SQS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ data_stream:
listen_port: 9560
preserve_original_event: true
preserve_duplicate_custom_fields: true
enable_request_tracer: true
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ ssl: {{ssl}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{#if enable_request_tracer}}
tracer.filename: "../../logs/http_endpoint/http-request-trace-*.ndjson"
tracer.maxbackups: 5
{{/if}}
8 changes: 8 additions & 0 deletions packages/cloudflare_logpush/data_stream/dns/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ streams:
required: false
show_user: false
default: 10
- name: enable_request_tracer
type: bool
title: Enable request tracing
multi: false
required: false
show_user: false
description: >
The request tracer logs HTTP requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-http_endpoint.html#_tracer_enabled_3) for details.
- input: aws-s3
title: DNS logs
description: Collect DNS logs from Cloudflare via S3 or SQS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ data_stream:
listen_port: 9560
preserve_original_event: true
preserve_duplicate_custom_fields: true
enable_request_tracer: true
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ ssl: {{ssl}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{#if enable_request_tracer}}
tracer.filename: "../../logs/http_endpoint/http-request-trace-*.ndjson"
tracer.maxbackups: 5
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ streams:
required: false
show_user: false
default: 10
- name: enable_request_tracer
type: bool
title: Enable request tracing
multi: false
required: false
show_user: false
description: >
The request tracer logs HTTP requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-http_endpoint.html#_tracer_enabled_3) for details.
- input: aws-s3
title: DNS Firewall logs
description: Collect DNS Firewall logs from Cloudflare via S3 or SQS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ data_stream:
listen_port: 9560
preserve_original_event: true
preserve_duplicate_custom_fields: true
enable_request_tracer: true
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ ssl: {{ssl}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{#if enable_request_tracer}}
tracer.filename: "../../logs/http_endpoint/http-request-trace-*.ndjson"
tracer.maxbackups: 5
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ streams:
required: false
show_user: false
default: 10
- name: enable_request_tracer
type: bool
title: Enable request tracing
multi: false
required: false
show_user: false
description: >
The request tracer logs HTTP requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-http_endpoint.html#_tracer_enabled_3) for details.
- input: aws-s3
title: Firewall Event logs
description: Collect Firewall Event logs from Cloudflare via S3 or SQS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ data_stream:
listen_port: 9560
preserve_original_event: true
preserve_duplicate_custom_fields: true
enable_request_tracer: true
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ ssl: {{ssl}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{#if enable_request_tracer}}
tracer.filename: "../../logs/http_endpoint/http-request-trace-*.ndjson"
tracer.maxbackups: 5
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ streams:
required: false
show_user: false
default: 10
- name: enable_request_tracer
type: bool
title: Enable request tracing
multi: false
required: false
show_user: false
description: >
The request tracer logs HTTP requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-http_endpoint.html#_tracer_enabled_3) for details.
- input: aws-s3
title: Gateway DNS logs
description: Collect Gateway DNS logs from Cloudflare via S3 or SQS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ data_stream:
listen_port: 9560
preserve_original_event: true
preserve_duplicate_custom_fields: true
enable_request_tracer: true
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ ssl: {{ssl}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{#if enable_request_tracer}}
tracer.filename: "../../logs/http_endpoint/http-request-trace-*.ndjson"
tracer.maxbackups: 5
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ streams:
required: false
show_user: false
default: 10
- name: enable_request_tracer
type: bool
title: Enable request tracing
multi: false
required: false
show_user: false
description: >
The request tracer logs HTTP requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-http_endpoint.html#_tracer_enabled_3) for details.
- input: aws-s3
title: Gateway HTTP logs
description: Collect Gateway HTTP logs from Cloudflare via S3 or SQS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ data_stream:
listen_port: 9560
preserve_original_event: true
preserve_duplicate_custom_fields: true
enable_request_tracer: true
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ ssl: {{ssl}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{#if enable_request_tracer}}
tracer.filename: "../../logs/http_endpoint/http-request-trace-*.ndjson"
tracer.maxbackups: 5
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ streams:
required: false
show_user: false
default: 10
- name: enable_request_tracer
type: bool
title: Enable request tracing
multi: false
required: false
show_user: false
description: >
The request tracer logs HTTP requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-http_endpoint.html#_tracer_enabled_3) for details.
- input: aws-s3
title: Gateway Network logs
description: Collect Gateway Network logs from Cloudflare via S3 or SQS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ data_stream:
listen_port: 9560
preserve_original_event: true
preserve_duplicate_custom_fields: true
enable_request_tracer: true
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ ssl: {{ssl}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{#if enable_request_tracer}}
tracer.filename: "../../logs/http_endpoint/http-request-trace-*.ndjson"
tracer.maxbackups: 5
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ streams:
required: false
show_user: false
default: 10
- name: enable_request_tracer
type: bool
title: Enable request tracing
multi: false
required: false
show_user: false
description: >
The request tracer logs HTTP requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-http_endpoint.html#_tracer_enabled_3) for details.
- input: aws-s3
title: HTTP Request logs
description: Collect HTTP Request logs from Cloudflare via S3 or SQS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ data_stream:
listen_port: 9560
preserve_original_event: true
preserve_duplicate_custom_fields: true
enable_request_tracer: true
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ ssl: {{ssl}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{#if enable_request_tracer}}
tracer.filename: "../../logs/http_endpoint/http-request-trace-*.ndjson"
tracer.maxbackups: 5
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ streams:
required: false
show_user: false
default: 10
- name: enable_request_tracer
type: bool
title: Enable request tracing
multi: false
required: false
show_user: false
description: >
The request tracer logs HTTP requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-http_endpoint.html#_tracer_enabled_3) for details.
- input: aws-s3
title: Magic IDS logs
description: Collect Magic IDS logs from Cloudflare via S3 or SQS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ data_stream:
listen_port: 9560
preserve_original_event: true
preserve_duplicate_custom_fields: true
enable_request_tracer: true
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ ssl: {{ssl}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{#if enable_request_tracer}}
tracer.filename: "../../logs/http_endpoint/http-request-trace-*.ndjson"
tracer.maxbackups: 5
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ streams:
required: false
show_user: false
default: 10
- name: enable_request_tracer
type: bool
title: Enable request tracing
multi: false
required: false
show_user: false
description: >
The request tracer logs HTTP requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-http_endpoint.html#_tracer_enabled_3) for details.
- input: aws-s3
title: NEL Report logs
description: Collect NEL Report logs from Cloudflare via S3 or SQS.
Expand Down
Loading

0 comments on commit 191eb51

Please sign in to comment.