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
Hi @daviftorres! I've categorized this issue as enhancement based on the following analysis:
Reasoning: This request improves existing logging functionality by adding timestamps to .err files, making troubleshooting easier. It enhances the observability of the system rather than fixing a broken feature.
I plan to identify where .err logs are generated (management server, agent, usage) and ensure timestamps are consistently included in the logging output.
Please let me know if there are any preferred logging formats or existing configurations I should follow.
Dear @dheeraj12347, thank you for volunteering to help so quickly.
I’m not a developer, so I may not be able to give detailed instructions. However, I suggest following the same format used for the .log file and applying it to the .err file.
Hi all,
I’ve opened PR #12967 to address this issue by adding %d{DEFAULT} timestamps to the CONSOLE appenders in the management server, client and agent log4j-cloud.xml.in files, so that .err logs now follow the same timestamped pattern as the .log files.
This replaces my earlier PR #12896, which had unrelated changes. The new PR is limited to just the three logging config files.
When you have a moment, could you please review PR #12967 and let me know if any further adjustments are needed?
This issue is stale because it has been open for 120 days with no activity. It may be removed by administrators of this project at any time. Remove the stale label or comment to request for removal of it to prevent this.
For a quick build from the PR branch, you can use:
mvn -pl server -am -DskipTests compile
That should be enough to verify that the Management Server side compiles. For actually checking the .err output, you’ll need a running CloudStack environment with the changes from #12967 applied.
The main thing to verify is that an ERROR-level message written to stderr appears in the corresponding .err file with a timestamp, similar to the format already used in the .log files. The PR also adds the same handling for the Usage server.
For triggering an error, I don't want to suggest a specific operation without knowing which CloudStack setup you're using, since the easiest way to reproduce an ERROR depends on the environment/configuration.
If you let me know whether you're testing with a local development setup, simulator, or an existing CloudStack installation, I can suggest a more specific way to test it.
No policy or filter could block access to anything. I ran the build from an instance attached directly to the edge router with direct internet access. Does that answer your question?
Blocked mirror for repositories: [apache.snapshots (http://repository.apache.org/snapshots, default, snapshots)]
unfortunately
No policy or filter could block access to anything. I ran the build from an instance attached directly to the edge router with direct internet access. Does that answer your question?
No, it doesn’t.
maybe there is a m2 configuration off? can you check that?
Activity
github-actions commentedon Mar 25, 2026
🏷️ Issue Triaged
Hi
@daviftorres! I've categorized this issue as enhancement based on the following analysis:Reasoning: This request improves existing logging functionality by adding timestamps to .err files, making troubleshooting easier. It enhances the observability of the system rather than fixing a broken feature.
View Triage Details
Analysis
Recommended Next Steps
References: Triage run §23546481442
dheeraj12347 commentedon Mar 26, 2026
Hi, I’d like to work on this.
I plan to identify where .err logs are generated (management server, agent, usage) and ensure timestamps are consistently included in the logging output.
Please let me know if there are any preferred logging formats or existing configurations I should follow.
daviftorres commentedon Mar 26, 2026
Dear @dheeraj12347, thank you for volunteering to help so quickly.
I’m not a developer, so I may not be able to give detailed instructions. However, I suggest following the same format used for the
.logfile and applying it to the.errfile.Regards,
dheeraj12347 commentedon Apr 6, 2026
Hi all,
I’ve opened PR #12967 to address this issue by adding %d{DEFAULT} timestamps to the CONSOLE appenders in the management server, client and agent log4j-cloud.xml.in files, so that .err logs now follow the same timestamped pattern as the .log files.
This replaces my earlier PR #12896, which had unrelated changes. The new PR is limited to just the three logging config files.
When you have a moment, could you please review PR #12967 and let me know if any further adjustments are needed?
github-actions commentedon Aug 5, 2026
This issue is stale because it has been open for 120 days with no activity. It may be removed by administrators of this project at any time. Remove the stale label or comment to request for removal of it to prevent this.
DaanHoogland commentedon Aug 5, 2026
@daviftorres any chance to tst/review the PR? it’s getting orphaned a bit.
davift commentedon Aug 7, 2026
Hey @DaanHoogland, I could use some guidance on how to compile and run CloudStack with the changes that @dheeraj12347 introduced in #12967.
I'm also wondering how I can intentionally trigger a few errors so I can see how they appear in the error logs now that they include timestamps.
dheeraj12347 commentedon Aug 8, 2026
Hi @daviftorres , sure.
For a quick build from the PR branch, you can use:
That should be enough to verify that the Management Server side compiles. For actually checking the
.erroutput, you’ll need a running CloudStack environment with the changes from #12967 applied.The main thing to verify is that an ERROR-level message written to stderr appears in the corresponding
.errfile with a timestamp, similar to the format already used in the.logfiles. The PR also adds the same handling for the Usage server.For triggering an error, I don't want to suggest a specific operation without knowing which CloudStack setup you're using, since the easiest way to reproduce an ERROR depends on the environment/configuration.
If you let me know whether you're testing with a local development setup, simulator, or an existing CloudStack installation, I can suggest a more specific way to test it.
daviftorres commentedon Aug 12, 2026
The compilations failed, but it could be an incompetence from my side. I can't say.
I do not feel qualified to review the code, and I do not know how to how to trigger any error.
DaanHoogland commentedon Aug 13, 2026
@davift do you have a policy to block http://repository.apache.org/snapshots for package retrieval (or in general to browse to)?
davift commentedon Aug 13, 2026
No policy or filter could block access to anything. I ran the build from an instance attached directly to the edge router with direct internet access. Does that answer your question?
DaanHoogland commentedon Aug 14, 2026
unfortunately
No, it doesn’t.
maybe there is a m2 configuration off? can you check that?