You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I replace the codec json_lines with json, the codec works and I get the parsed json. But with json_lines, no data is printed on stdout. I read the forums that json_lines should work with file input now, but in this case, it is still giving issues.
I also verified that in the input file, each json is de-limited with a \n by running the command cat input.log|od -tx1c
The File input chunks its input by the delimiter, and hands the bytes between delimiters to the codec. This means that when it is configured with the json_lines codec, the codec never receives the delimiter and continues to add these chunks to its internal buffer instead of turning each chunk into a single event.
The json_lines codec when used on the file input plugin causes the file input plugin to not process any data.
When I replace the codec json_lines with json, the codec works and I get the parsed json. But with json_lines, no data is printed on stdout. I read the forums that json_lines should work with file input now, but in this case, it is still giving issues.
I also verified that in the input file, each json is de-limited with a
\n
by running the commandcat input.log|od -tx1c
The sample input looks like this
The text was updated successfully, but these errors were encountered: