Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chronicle compression doesn't set the content-encoding header #22007

Open
10x-mattsearle opened this issue Dec 10, 2024 · 0 comments
Open

Chronicle compression doesn't set the content-encoding header #22007

10x-mattsearle opened this issue Dec 10, 2024 · 0 comments
Labels
sink: gcp_chronicle Anything `gcp_chronicle` sink related type: bug A code related bug.

Comments

@10x-mattsearle
Copy link
Contributor

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

When using Google Chronicle as a log sink and enabling gzip compression vector doesn't set the content-encoding header in the API request and the chronicle API therefore responds with a 400 response because it cannot parse the compressed data as json.

Configuration

acknowledgements:
  enabled: true
api:
  enabled: true
data_dir: /var/lib/vector
healthchecks:
  enabled: true
  require_healthy: true
sources:
  aws_config:
    decoding:
      codec: bytes
    sqs:
      max_number_of_messages: 1
      queue_url: https://sqs.eu-west-1.amazonaws.com/xxxxxxxxxxx/aws_config_notifications_queue
    type: aws_s3

sinks:
  chronicle:
    compression: gzip
    credentials_path: /etc/chronicle/google_sa.json
    customer_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    encoding:
      codec: json
    inputs:
    - aws_config
    log_type: AWS_CONFIG
    region: eu
    type: gcp_chronicle_unstructured

Version

0.43.0

Debug Output

No response

Example Data

No response

Additional Context

No response

References

No response

@10x-mattsearle 10x-mattsearle added the type: bug A code related bug. label Dec 10, 2024
ChocPanda pushed a commit to ChocPanda/vector that referenced this issue Dec 10, 2024
@jszwedko jszwedko added the sink: gcp_chronicle Anything `gcp_chronicle` sink related label Dec 10, 2024
ChocPanda pushed a commit to ChocPanda/vector that referenced this issue Dec 13, 2024
ChocPanda added a commit to ChocPanda/vector that referenced this issue Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sink: gcp_chronicle Anything `gcp_chronicle` sink related type: bug A code related bug.
Projects
None yet
Development

No branches or pull requests

2 participants