SaaS is configured to forward log to OnPrem Aria Operations for Logs via Log Agents. However, the ingested data is showing a delay and not real time result.
Aria Operations for Logs 8.x
Aria Operations for Logs SaaS
High volume of data ingestion from the SaaS to the OnPrem environment.
The endpoint configuration has issues and was throttling back the log-agent to have timeouts when forwarding the logs to destination endpoint. This cause a huge back pressure and created backlog. So when log-agent tying to connect back and forward data it was backfilling old data and hence Customer sees the delay.
Also the log-agent by default using different/standard sessions to connect to the destination, but with this recent upgrade using the websocket can handle 10X volume of data forward at much faster rate
The following workaround can upscale the performance on the connectivity (sessions) to improve the log forwarding and resolve the lag and delay issue:
/etc/systemd/system/ where the systemd unit file for the log-agent docker service is available.
cd /etc/systemd/system/.log-agent.service file.-e ENABLE_WEB_SOCKET_SESSIONS=true under the ExecStart= section. Make sure a space before and after this command.log-agent.service.
systemctl daemon-reload.systemctl restart log-agent.service.docker ps". Also can try running the command "systemctl is-active log-agent.service". This should return active status.WSMessageConsumer and WebSocket connection is established successfully are logged. Command: tail -f /data1/log-agent/log-forwarder.log.Screenshot showing the modification to the log-agent.service file:
Validate and confirm log ingestion are showing Real Time data in the OnPrem environment.