-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with logs being stopped getting generated at midnight while using date based rollover strategy in log4j2 #2010
Comments
Anyone who can help on this? |
Do you still observe this issue with the most recent Log4j version, that is,
|
Hi vy,
The issue is that we sometimes see that at log rollover (every day at 00:00 logs get rolled over to new file), logs don't get written to the new file Note: This happens some days and doesn't happen on other days |
What do the Do you have enough free space on your filesystem? |
Yes, We don't see any issues with free space. The logs during rollover on the day which it stopped generating are below (masked ipaddress) ####<Dec 12, 2023 11:59:58,875 PM PST> <oms_server18> <> <> <1479c544-6132-4300-a3fd-4284f7a22e0e-0000000c> <1702454398875> <[severity-value: 64] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <Self-tuning thread pool contains 0 running threads, 3 idle threads, and 14 standby threads> |
Any further update on this |
In the sample of your logs I can not find any message that matches the If multiple logging backends are rotating the same files the results are unpredictable. |
On this question, we have two appenders configured to write in log files. LULU_LOG_APPENDER and ALL. Would this be the reason for this behavior? |
Having two appenders logging to the same file is highly discouraged, but it could work (there should be a single However if you have the same config on multiple web applications, it will fail and the logs of all but one application will be lost. |
This issue is stale because it has been waiting for your feedback for more than 60 days. The Apache Logging Services community values every submitted issue, but without additional information from you, we are unable to provide a solution to your problem. |
I would love to see what shows up with log4j2.debug=true set for the application during rollover. I don't think we actually have any tests for a configuration where two appenders will use the same rolling file manager. To be honest, since these are configured exactly the same I have no idea what the point of having two appenders is. |
This issue is stale because it has been waiting for your feedback for more than 60 days. The Apache Logging Services community values every submitted issue, but without additional information from you, we are unable to provide a solution to your problem. |
There must be a bug in the Github Stale action. I'll check it out. |
This issue is stale because it has been waiting for your feedback for more than 60 days. The Apache Logging Services community values every submitted issue, but without additional information from you, we are unable to provide a solution to your problem. |
Description
We are using log4j2 for logging in Sterling OMS product and observe that for 2 app servers, sometimes logging stops getting generated at midnight . Date based rollover strategy is implemented
Configuration
Version: Log4J2
**Operating system: Unix (Sterling OMS v 10)
The text was updated successfully, but these errors were encountered: