Skip to content

aws_ec2_metadata transform assumes event is an object, even in Vector namespace #17193

Closed
@StephenWakely

Description

@StephenWakely

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

The aws_ec2_metadata transform assumes the incoming object is an Object. This is fine for the Legacy namespace (currently in use everywhere), but in the Vector namespace this is not always the case.

Currently Vector will panic (once the transform definitions work goes in) on load if the incoming event definition is not an object.

Configuration

schema:
  enabled: true

sources:
  in:
    type: syslog
    address: 0.0.0.0:9000
    mode: tcp
    log_namespace: true

transforms:
  thing:
    type: aws_ec2_metadata
    inputs:
      - in
      
sinks:
  console:
    type: console
    inputs:
      - thing
    encoding:
      codec: json
    target: stdout

Version

v0.30

Debug Output

No response

Example Data

No response

Additional Context

No response

References

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions