Replies: 4 comments 9 replies
-
It seems that Try to use @type tail for example.
and use sample.log something like:
Then, launch fluentd.
As you can see, stringWithSeperator was split into array.
|
Beta Was this translation helpful? Give feedback.
-
First workaround (with [https://github.com/JonathanSerafini/fluent-plugin-mutate_filter], an abandonned project) :
|
Beta Was this translation helpful? Give feedback.
-
Second workaround (filter record_transformer with split ruby) :
|
Beta Was this translation helpful? Give feedback.
-
This looks great! |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use parser types "array" to define an array but the documentation is not clear.
I wonder if this isn't a bug.
I define a source a message of type json which contains a stringWithSeparator field.
I define a parser to specify that this field is an array ('|' is a separator).
My output is :
2024-04-10 09:27:31.024290645 +0000 sample.test: {"code":"XX","Name":"Example","stringWithSeparator":"R1|R2|R3|R4"}
Expected result :
2024-04-10 09:27:31.024290645 +0000 sample.test: {"code":"XX","Name":"Example","stringWithSeparator":["R1", "R2", "R3", "R4"]}
Beta Was this translation helpful? Give feedback.
All reactions