You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using SplunkHttp appender with log4j2 for my Java console application. In case I am using batch mode (any batch_size_count bigger than 1) some of my entries logged before the shutdown are missing on splunk. For instance I expect to see [INFO ] 2023-12-11 11:35:27.626 [main] ExitCodePrinter - Application finished with exit code=1 but no luck.
The same application has console and file appenders and the log entry is not missing in console and log file.
This is my setup.
Dependency: com.splunk.logging:splunk-library-javalogging:1.11.8.
Log4j2 file:
This issue forces me to use batch_size_count=1 so that I don't loose some important logs. Would be nice being able to use batching due to performance reasons.
The text was updated successfully, but these errors were encountered:
Hi,
I am using SplunkHttp appender with log4j2 for my Java console application. In case I am using batch mode (any
batch_size_count
bigger than 1) some of my entries logged before the shutdown are missing on splunk. For instance I expect to see[INFO ] 2023-12-11 11:35:27.626 [main] ExitCodePrinter - Application finished with exit code=1
but no luck.The same application has console and file appenders and the log entry is not missing in console and log file.
This is my setup.
Dependency:
com.splunk.logging:splunk-library-javalogging:1.11.8
.Log4j2 file:
This issue forces me to use
batch_size_count=1
so that I don't loose some important logs. Would be nice being able to use batching due to performance reasons.The text was updated successfully, but these errors were encountered: