Skip to content

The difference between logs and metric events #9334

Answered by jszwedko
candlerb asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @candlerb !

Apologies for the delay. These are good questions.

However, by the time I get to a sink - let's say the console sink for simplicity - the "log" or "metric" wrapper has been removed. All I see is a JSON object:

This is an error in our documentation (as you noted with link to #9306). It shouldn't be rendering the wrapping object with log and metric keys. This is an artifact of how we represent events as an enum in the cue configuration.

When Vector is dealing with events they will either be logs (which are essentially just key/value maps) or metrics (which are structs with a specific set of fields as described on https://vector.dev/docs/about/under-the-hood/architecture/da…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@candlerb
Comment options

@candlerb
Comment options

@jszwedko
Comment options

@sushovan23
Comment options

@candlerb
Comment options

Answer selected by jszwedko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants