After running the code for a little bit we noticed that the log events aren't flushed again after the initial flush when the ElasticSearchHttpClient is created. It's only flushed again when the program exits and the client is closed.
This causes memory issues since the log event queue in the client is filling up quickly in a typical high load application. Also, there is a very high chance that events aren't detected in monitoring as they are never flushed to elastic search.
After running the code for a little bit we noticed that the log events aren't flushed again after the initial flush when the ElasticSearchHttpClient is created. It's only flushed again when the program exits and the client is closed.
This causes memory issues since the log event queue in the client is filling up quickly in a typical high load application. Also, there is a very high chance that events aren't detected in monitoring as they are never flushed to elastic search.