-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Can i use reduce transform(with merge strategies as sum) to sum events at a periodic time of 15/20seconds. #16695
Comments
I believe you are hitting the bug that was fixed by #16146 I'm going to close this issue since I'm fairly confident this is a duplicate. However, feel free to re-open if that's not the case. |
Reopening since we had to revert the change that closed this in #17084 |
Hi there! Cheers! |
Any update here? This seems like a commonly requested feature. Currently we can define |
No update yet. We'd be happy to see someone pick this up though, if they are motivated. You could start with the implementation we had to revert, here: #16146 |
Closed by #20440 |
A note for the community
Problem
I am using reduce transform to sum some events grouped by an id. I want to do this at 15 seconds periodically. But the logs are continuous and reduce blocks till the events are over which does not solve the purpose.
Metrics are required after every 15sec. HAve tried both the pipelines below but its gets stucked with Reduce.
Pipeline :: Reduce -> LogToMetric & Reduce -> LogToMetric ->Aggregate
Here is the peice of code::
inputs = [ "parse_upf1"]
type = "reduce"
merge_strategies.sessions = "sum"
group_by = ["id"]
[transforms.logs2metrics-id]
type = "log_to_metric"
inputs = [ "remap_upf" ]
[[transforms.logs2metrics-id.metrics]]
type = "gauge"
field = "pools"
name = "PoolsPerId"
namespace = "upf"
[[transforms.logs2metrics-id.metrics]]
type = "gauge"
field = "sessions"
name = "SessionsPerId"
namespace = "upf"
[transforms.parse_upf11]
type = "aggregate"
inputs = ["logs2metrics-id"]
interval_ms = 15000
Pl help
Configuration
Version
vector 0.27.0 (x86_64-unknown-linux-gnu 5623d1e 2023-01-18)
Debug Output
No response
Example Data
No response
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: