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

feat(remap transform): Allow emitting multiple events from remap transform #7263

Closed
wants to merge 1 commit into from

Conversation

pablosichert
Copy link
Contributor

Working on #4908, I needed a way to emit multiple events (specifically: extract multiple logs from one AWS CloudTrail log object).

This implementation works by adding a emit_multiple flag to the remap transform, which expects the result of a VRL program to be an array when set. The objects of the array are then emitted as individual events.

The current implementation wouldn't be useful yet without having a map function on VRL arrays to parse the individual CloudTrail logs from the parent object.

Unfortunately, I did not discover #6330, #6031 and #7038 before working on this, so I'll put this PR back as draft and maybe it can serve as an example in this discussion.

Signed-off-by: Pablo Sichert <mail@pablosichert.com>
@pablosichert
Copy link
Contributor Author

Closing this as a duplicate of #7267.

@pablosichert pablosichert deleted the remap-transform-emit-multiple branch May 7, 2021 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant