I am trying to send log message to Graylog via Raw/Plaintext TCP input.
Log message is configured by Log4j2 under Spring boot application.
Sending log I prefer to use socket and using buffer size for wrap the message and send to the server only once time. Below is code suggestion from another source.
<Socket name="socketAppender" host="<graylog host>" port="port">
<SerializedLayout />
</Socket>
<Async name="async" bufferSize="500" includeLocation="false">
<AppenderRef ref="socketAppender"/>
</Async>
As now I am facing with log4j2 error sending to Graylog with not able to read in Web UI. Another is buffer size is working as expected.