Replies: 2 comments
-
Yes, I have a similar case to have both at the same time. Also would be great to use multiple strategies for specific JSON nested fields at the same time on this reduced between start and end. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@ssboisen how did u bypass that limitation ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When
starts_when
option for the reduce transform were introduced in #4771 it's mentioned by @JeanMertz that in the future the restriction for specifying both that andends_with
at ones could be lifted if a use-case were found. I believe I have one.The situation is as follows, I have log lines with the following messages where each line is a separate log event:
From those 6 events I would after the reductions have the following 3 events separated by blank lines
My initial thought was to just have the following configuration:
However I found that it's currently not possible due to the restriction mentioned above resulting in an error when starting vector. Does anyone have a suggestion how you would do this using reduce without using both starts_when and ends_when? Currently I have resorted to using
lua
transform instead.I have created the following behavior-test that passes when the 3 lines that restricts usage of starts_when and ends_when are removed.
Beta Was this translation helpful? Give feedback.
All reactions