Skip to content

Conversation

@benjamin-awd
Copy link
Contributor

@benjamin-awd benjamin-awd commented Jan 16, 2026

Summary

This PR allows content_encoding and cache_control to be configured in the GCS sink.

Vector configuration

sources:
  test_logs:
    type: demo_logs
    format: json
    interval: 1.0
    count: 100

transforms:
  process:
    type: remap
    inputs:
      - test_logs
    source: |
      .timestamp = now()
      .message = .message
      .level = "info"
      .host = .host

sinks:
  gcs:
    type: gcp_cloud_storage
    inputs: [process]
    bucket: test_bucket123
    framing:
      method: newline_delimited
    encoding:
      codec: json
    compression: gzip
    content_encoding: ""
    cache_control: no-transform
    key_prefix: encoding_test

How did you test this PR?

Ran locally, verified in GCS that metadata is correct
image

Change Type

  • Bug fix
  • New feature
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the no-changelog label to this PR.

References

Notes

  • Please read our Vector contributor resources.
  • Do not hesitate to use @vectordotdev/vector to reach out to us regarding this PR.
  • Some CI checks run only after we manually approve them.
    • We recommend adding a pre-push hook, please see this template.
    • Alternatively, we recommend running the following locally before pushing to the remote branch:
      • make fmt
      • make check-clippy (if there are failures it's possible some of them can be fixed with make clippy-fix)
      • make test
  • After a review is requested, please avoid force pushes to help us review incrementally.
    • Feel free to push as many commits as you want. They will be squashed into one before merging.
    • For example, you can run git merge origin master and git push.
  • If this PR introduces changes Vector dependencies (modifies Cargo.lock), please
    run make build-licenses to regenerate the license inventory and commit the changes (if any). More details here.

@benjamin-awd benjamin-awd requested review from a team as code owners January 16, 2026 04:28
@github-actions github-actions bot added domain: sinks Anything related to the Vector's sinks domain: external docs Anything related to Vector's external, public documentation labels Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: external docs Anything related to Vector's external, public documentation domain: sinks Anything related to the Vector's sinks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add content_encoding and cache_control to gcp_cloud_storage sink

1 participant