vectordotdev / vectordotdev/vector
New `http` transform
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 22.6k
- Forks
- 2.3k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 146
Description
Proposal
We should add the ability for a user to enrich their log events from some form of external metadata.
Solution
Provide a http transform that can hit some http endpoint on a set interval and enrich log events with fields from this http endpoint. This is very similar to the aws_ec2_metadata transform except its more general. I suggest we start with just json decoding and use the same evmap approach.
Options
We should provide these set of options to users:
endpointthis should be the endpoint to hitfieldsthis should be a list of fields to include from the map of json returned.refresh_interval_secsthe interval in seconds at which we will refresh with new data.clear_oldwhen set to true when new data comes in it will clear the map first.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing aws_ec2_metadata transform, which the proposal identifies as the closest comparison. Review the requested endpoint, JSON decoding, evmap, refresh interval, selected fields, and clear_old behavior, then determine the implementation and testing locations; done means the design and all listed options are supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- stream-processing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100