Akshay Sura - Partner
8 Aug 2025
When troubleshooting issues, the first place we go is the logs. While troubleshooting silent login failures in Sitecore 10.4.1, I found a secondary issue. I discovered that the Identity Server simply doesn’t generate logs in certain connection failure scenarios.
This makes debugging frustrating, since you have no insight into what the Identity Server is doing behind the scenes.
Sitecore Support has confirmed this as a bug in Identity Server logging. In certain cases, particularly when the application fails early in its startup sequence, log files are never written.
The issue has been tracked internally by Sitecore under public reference number PDXP-6561. You can monitor bug status using Sitecore’s public reference tracker.
Until this bug is addressed in a future release, you can use ASP.NET Core stdout logging to capture output from the Identity Server process. We need to switch out the Identity Server to stdout-based logging.
1. Locate the Identity Server web.config file:
{IdentityServer}/web.config
2. Find the aspNetCore configuration section:
1<aspNetCore processPath=".\Sitecore.IdentityServer.Host.exe"
2
stdoutLogEnabled="false"
3
stdoutLogFile=".\logs\stdout"
4
hostingModel="OutOfProcess" />
3. Enable stdout logging:
1<aspNetCore processPath=".\Sitecore.IdentityServer.Host.exe"
2
stdoutLogEnabled="true"
3
stdoutLogFile=".\logs\stdout"
4
hostingModel="OutOfProcess" />
4. Save the file and Restart the Identity Server application pool or IIS
After implementing the workaround:
These files capture the raw output from the Identity Server process, including startup errors that wouldn’t normally make it into the standard Sitecore logs.
The Identity Server logging issue (PDXP-6561) in Sitecore 10.4.1 significantly impacts troubleshooting capabilities, but the stdout logging workaround provides an effective solution. While we await an official fix, enabling stdout logging ensures developers maintain visibility into Identity Server operations.
This issue underscores the importance of comprehensive logging strategies and proactive monitoring in Sitecore environments. By implementing the stdout logging workaround and following the best practices outlined above, development teams can maintain diagnostic capabilities while working with affected Sitecore versions.
Need a second pair of eyes from some of the most experienced Sitecore veterans and MVPs available? Get in touch, we're always happy to have a discussion and help.
Akshay is a nine-time Sitecore MVP and a two-time Kontent.ai. In addition to his work as a solution architect, Akshay is also one of the founders of SUGCON North America 2015, SUGCON India 2018 & 2019, Unofficial Sitecore Training, and Sitecore Slack.
Akshay founded and continues to run the Sitecore Hackathon. As one of the founding partners of Konabos Consulting, Akshay will continue to work with clients to lead projects and mentor their existing teams.
Share on social media