I am using livetail-cli provided by sumologic.
I am trying send the livetail output to an http endpoint. But it shows connection time out error after some time.
The command which i am using is
while IFS= read -r newline; do echo $newline | curl -XPOST --data-binary $0 http://localhost:9090 -H Content-Type:application/json ; done < <(./livetail _sourceCategory="x")
What is the best way to achieve this so that the connection persists?Although the sumologic api mentions about the session timeout after 30min of inactivity. But i am sure that the logs would be continuously coming from the source.