Parses binary data into events with a single data field, in a streaming
fasion.
read_chunksDescription
Section titled “Description”The read_chunks operator turns each incoming byte chunk into a single event
with a field called data of type blob. Unlike read_all, which
buffers the entire input and produces one event, read_chunks emits events
as data arrives.
This is useful for piping binary data out from_ operators, that can only emit
events.
Examples
Section titled “Examples”Read a file as blob events
Section titled “Read a file as blob events”from_file "data.bin" { read_chunks}{data: b"<chunk contents>"}Round-trip with write_chunks
Section titled “Round-trip with write_chunks”from_file "input.bin" { read_chunks}to_file "output.bin" { write_chunks}