-
I have following vector.yaml file. My target is to pickup a file contents and push them to SEQ via http. One of the sinks in the below is the console. I have taken the console JSON file and pushed it to SEQ forwarder (SEQ) via Postman. And the event seems to be happily created. But when pushed through vector i receive errors ERRORs from VECTOR:
ERRORS FROM SEQ
It seems like the JSON format is not compatible, but i took the same json and pushed it via postman it works. Let me know if someone has a solution for this Sourcessources: Transformstransforms: Sinkssinks: send_to_seq: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The SEQ error makes me think it is expecting newline delimited JSON objects and Vector, with this configuration, will send an array. I'd suggest trying: encoding:
codec: json
framing:
method: newline_delimited On the sink. Small note: it's easier to read YAML if it is formatted as code. Above you have included the configuration unformatted. See https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax for the syntax. |
Beta Was this translation helpful? Give feedback.
The SEQ error makes me think it is expecting newline delimited JSON objects and Vector, with this configuration, will send an array. I'd suggest trying:
On the sink.
Small note: it's easier to read YAML if it is formatted as code. Above you have included the configuration unformatted. See https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax for the syntax.