I am trying to write a small script, that has to:
- Query an external API (done)
- Parse the output and send JSON to Graylog
Both is working, but only partially. Some logs are shown perfectly in Graylog, but some logs are split, where one message appears as two in Graylog (first part, second part).
My script is sending via Netcat to a raw UDP input:
echo "$jsonstring" | nc -w2 -u graylogserver 11530 &
Do you have any idea, why this happens and do you have any idea on how to solve this?
The issue is not related to the workload. The same message does sometimes pass as one part and is sometimes split.
Thank you for your help!