Skip to content

Using log_to_metric + aggregate using event's timestamp #13991

Answered by tobz
fpytloun asked this question in Q&A
Discussion options

You must be logged in to vote

Chatting with @fpytloun in Discord, we talked through the intended/expected behavior, which is actually windowing the metrics by their own timestamp, not the real clock time as Vector processes the event. Thus, the goal would be to aggregate each metric individually with a 5 second window, based on the original timestamp... and thus, with the example input, having timestamps more than 5 seconds apart, the expectation effectively has no reduction/aggregation.

With the intended behavior explained here, the answer is that aggregate transform operates on wall clock time, and so it has no concept of being able to window incoming data in this way. Similarly, the reduce transform gets a little c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fpytloun
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
2 participants