Questions tagged [logging]

For questions related to logging in Sitecore, typically covering log4net, log tools and readers, and other related logging features, configuration and code

Filter by
Sorted by
Tagged with
1 vote
1 answer
29 views

Where are the Crawling.log files in Sitecore Managed Hosting?

We have a Sitecore 9.3 solution hosted in Sitecore Managed Cloud and due to an issue with indexing jobs getting stuck for 24+ hours, we would like to look at the Crawling.log.{date}.{time}.txt files - ...
Patrick Jones's user avatar
0 votes
0 answers
28 views

Logging to Application Insights [duplicate]

I am trying to add Application Insights telemetry to a SiteCore project in Visual Studio 2019 using the steps documented in the following article, and have configured the connection string in the ...
Rohan's user avatar
  • 1
1 vote
0 answers
25 views

Publishing delay due to Scheduling.DatabaseAgent started. Database: master

I was wondering why my single item publish took over 4 minutes. I checked the logs and found that some job started in the queue in middle of the publish. Below is the reported log, ManagedPoolThread #...
hrupapara's user avatar
1 vote
2 answers
323 views

Modifying sitecore publishing logs

We are using Sitecore Publishing Service Module for publishing. But when it comes to publishing logs. It provides a very limited amount of information. We moved its logging level to INFO still we are ...
Himanshu's user avatar
1 vote
1 answer
443 views

Reducing search log size in Sitecore 10.1 for sitecore_testing_index?

How can I reduce the size of my search logs in Sitecore 10.1? Just one search log is currently reaching over 2 GB in size within a few hours, and I've observed that the majority of them are associated ...
Owais Ahmed's user avatar
1 vote
2 answers
604 views

How to pass custom parameters to custom log appender

I have created a custom log appender. This is from the default Sitecore.Logging.dll. public class ApiLogger : log4net.Appender.ForwardingAppender { public ApiLogger() { LogProperties = new ...
sukesh's user avatar
  • 3,079
0 votes
2 answers
195 views

AppData logs contain lots of Solr Query entries - can these be reduced or removed?

I've been trying to diagnose some production websites and noticed that my Sitecore AppData logs are littered with Solr Queries INFO logging messages. Can these be turned off? I looked through all of ...
Qorey's user avatar
  • 71
0 votes
1 answer
96 views

How to use Serilog to push logs to SQL DB in XP

Using Sitecore 10.2 I have installed Serilog and Serilog.Sinks.MSSqlServer nuget packages. After the Sitecore log file is created, I would like to create logs in the database also. The debugger is not ...
sukesh's user avatar
  • 3,079
1 vote
1 answer
321 views

Sitecore Logging default behavior in Azure app insight

I need to check the publishing sitecore logs in azure app insight. I tried go to Transaction search of app insight and search for publish then I'm able to see publish items with no details that who ...
Udit Gupta's user avatar
0 votes
0 answers
33 views

Value not getting replaced during logging to Application Insight from Identity Server

Sitecore.NET 10.1.1 (rev. 005862) in Azure PAAS Scaled What I am trying to do: I want to write the logs into the Application Insights for the Sitecore Identity server. What is the current status: ...
NutsAndBolts's user avatar
  • 1,330
3 votes
1 answer
216 views

Sitecore Identity server logs to Application Insights

Sitecore.NET 10.1.1 (rev. 005862) in Azure PAAS Scaled What I am trying to do: I want to write the logs into the Application Insights for the Sitecore Identity server. What I have done till: I ...
NutsAndBolts's user avatar
  • 1,330
2 votes
2 answers
169 views

Is there a reliable way to get Login Audit logs from Application Insights of a CM web app?

I am trying to find audit logs corresponding to users in the Sitecore domain - in application insights for my CM web app. I am looking at the -ai app and searching with EventType = Trace. I have ...
Durga Bose's user avatar
0 votes
1 answer
537 views

How to configure Serilog filters in xConnect?

I would like to filter out some messages from being logged in xConnect - for example 'Failed to locate activity...'. I have tried this configuration but it does not seem to take effect: <Settings&...
Mark Gibbons's user avatar
  • 5,522
0 votes
1 answer
421 views

Does anyone know how to delete the Log files FOLDERS

Ok so I have a patch that looks like below, it does a good job of deleting 2 day and older logs but however it just leaves the folder itself. I tried adding the section above which is bolded but it ...
user1566783's user avatar
0 votes
0 answers
382 views

Sitecore custom logs not working on server

I'm trying to create a custom log for my application, but for some reason, it is not working when I deployed it into the server. Locally it is working just fine. I have already tried what's mentioned ...
Fabio Carvalho's user avatar
0 votes
1 answer
171 views

Unable to find any CM login information in Sitecore 10.1

I cannot find any login messages in my Azure application insights. Only found a logout message like this: AUDIT (sitecore\foo.bar): Logout: sitecore\foo.bar. Does anyone know where to find the login ...
JohnnyLiao's user avatar
1 vote
1 answer
429 views

How to expose more than one source log file for a pod in Sitecore in AKS

We are in the process of upgrading to Sitecore 10.1 and we are also changing our infrastructure to use AKS. I just noticed the the Sitecore logs we get from the pods seems to only include the logs ...
JF Hamel's user avatar
3 votes
1 answer
306 views

New Relic application monitoring data collection from Sitecore 9.3 multisite project

We have Sitecore multi-site set up where 3 websites are running from single sitecore instance. In new relic we want to track monitoring data for each site individually. If websites are hosted under ...
Sukhjeevan's user avatar
1 vote
1 answer
789 views

How do you push log data to Splunk?

We are trying to consolidate our logging data in Splunk and then limit/reduce access to the Sitecore servers. I've not seen much from the community on how to set this up. Are there any examples ...
Michael West's user avatar
  • 18.1k
0 votes
1 answer
354 views

How to resolve SQL Injection flaw in sitecore.logging.dll

We ran a Veracode scan on our Sitecore solution and it has identified that the sitecore.logging.dll has SQL injection vulnerabilities. A full description here: SQL injection vulnerabilities occur when ...
James's user avatar
  • 43
0 votes
1 answer
146 views

Integrate Serilog logging in Sitecore 9.3

We are evaluating options to send the Sitecore application logs to New relic which is an application monitoring tool that also can index logs, so in the process of that, we found Serilog can write ...
Abhi's user avatar
  • 311
0 votes
0 answers
89 views

Logging access changes to users/roles

I am attempting to perform logging of access changes of users/roles (access change to items- access viewers, not role change of user) and have attempted using the following events and their remote ...
meanmean's user avatar
0 votes
0 answers
174 views

Log the IP-address of edits (AUDIT) in the Sitecore main log file

A client wants to register the IP addresses in Sitecore logs for the AUDIT level, entries like item saved and item updates, is there a way to do that, those messages are OOTB.
AJ -'s user avatar
  • 219
5 votes
3 answers
617 views

Identity Server logs clean-up

Is there any way to clean-up logs for Sitecore 9.3 Identity Server? I searched for logging configuration but didn't find any. I want to update configuration so that it automatically deletes logs older ...
Rahul Kumar's user avatar
1 vote
0 answers
54 views

Is there a connector to Azure AppInsights for VM Sitecore Instances

We are currently running Sitecore 9.0 on AWS instances but will be moving to 9.3 on Azure. We have 4 production CD servers, so tracking down issues in the log files is tedious to say the least, as we ...
Gary Williams's user avatar
0 votes
1 answer
351 views

Using serilog on Sitecore 9.0.1

I'm using Sitecore 9.0.1. I would like to replace log4net with Serilog. How do I configure it for 9.0.1?
alecasciaro's user avatar
2 votes
1 answer
224 views

Tools to get email alerts for logs

A requirement in one of the projects is to get email alerts for logs in production and UAT environment. Whenever an error occurs and is logged, an email alert is to be sent to pre-defined recipients. ...
NewbieHere's user avatar
2 votes
2 answers
315 views

Download active Sitecore log?

We have Sitecore Managed Cloud on Azure, Sitecore 9.3. I finally found where Sitecore writes the Sitecore logs: in the website folder itself, in /App_Data/logs/RD00155DE2A656/ (on our site at least), ...
Conrad Albrecht's user avatar
0 votes
1 answer
140 views

Migration Onto Sitecore's DI Framework Knocked Out All Sitecore Logging

We're currently on Sitecore 9.1 and recently migrated onto Sitecore's dependency injection framework in order to get Sitecore Forms to work correctly. The transition seemed to go smoothly, however now ...
c-bro's user avatar
  • 557
0 votes
2 answers
79 views

Using Seq with Sitecore PaaS

We are running 9.3 in an app service in Azure. We have found a number of articles stating different things about logging in SC. Some say it's log4net, others say Serilog... Since we cannot get to ...
Beau D'Amore's user avatar
1 vote
0 answers
113 views

XConnect Serilog Replacement

Our in house shop uses a homegrown logging library to centralize all of our application logs for reporting, searching, and support. XConnect comes equip with the Serilog out of box. Is there a way to ...
Tyler.S's user avatar
  • 298
1 vote
0 answers
294 views

Sitecore logs not updating until I force an app pool restart

I've got this strange behaviour happening where my Sitecore log files are not being updated at all unless I restart the app pool, then it seems to flush all the stuff that's been going on into the ...
Matt Eno's user avatar
  • 373
3 votes
1 answer
339 views

what version of log4net is Sitecore.Logging.dll branch/fork based upon?

what version of log4net is Sitecore.Logging.dll branch/fork based upon? There is a locking bug in log4net which affects version 1.2.10 https://issues.apache.org/jira/browse/LOG4NET-298 Which was ...
Ian's user avatar
  • 1,072
0 votes
1 answer
163 views

How to find errors that referenced in Error logs?

I am one of the Sitecore developer of a large Sitecore site, I have been assigned to clean up a project that cleans up a lot of the error logs, These are the errors logs, but since I am new to the ...
jsPlayer's user avatar
  • 203
1 vote
0 answers
140 views

Custom ApplicationInsights LogAppender - Log4net [closed]

I have developed a custom log appender to send exceptions to Application Insights. The problem is that some exceptions show on the AI protal (Azure) but some other exceptions don't. Anyone had similar ...
EricImhauser's user avatar
2 votes
1 answer
799 views

Sitecore PaaS best pratice for App_Data

We are currently using Azure DevOps to deploy our Sitecore 9.1.1 and 9.2 solutions to Azure. In Azure DevOps you have the option of "leaving the App_Data" folder alone during deployment, i.e. not ...
Hos's user avatar
  • 884
3 votes
2 answers
2k views

WARN Failed to create counter 'Sitecore.Analytics.XConnect\XConnect Model

We identified many repetitive warnings in Sitecore log files: WARN Failed to create counter 'Sitecore.Analytics.XConnect\XConnect Model Converter | Convert To XConnect Interaction Operations / sec'. ...
Abhishek Malaviya's user avatar
3 votes
1 answer
255 views

How to generate site specific log file in multi site scenario?

By default only one log file is created in multi-site scenario also. We have come across requirement to generate log file as per site i.e. each site have its own log file. So it'll easy to debug and ...
Abhishek Malaviya's user avatar
2 votes
1 answer
432 views

Is there a way to write to the Sitecore logs via Javascript? (8.2)

I need to track some particular Javascript events in my Sitecore (8.2) logs so that I can see how often it's firing. I have some ideas for how I could make my own api to write to the Sitecore logs, ...
Erica Stockwell-Alpert's user avatar
7 votes
1 answer
462 views

How to filter application insights logs based on log file type

In a regular Sitecore deployment, the logs are written to files such as Crawling.log.yyyyMMdd.txt Search.log.yyyyMMdd.txt log.yyyyMMdd.txt and Publishing.log.yyyyMMdd.txt. When viewing logs in Azure ...
Matthew Dresser's user avatar
0 votes
1 answer
139 views

What is this error in the Sitecore error logs?

On a Sitecore 9.1 Initial Release site with JSS (Angular JS), we are noticing a large number of these errors in the Sitecore logs: 15888 15:09:55 ERROR ERROR [Error] This is the entire error message,...
Kasaku's user avatar
  • 4,164
0 votes
1 answer
430 views

Not able to create logs on CD server in sitecore 9.1

I have upgraded Sitecore 8.1 to 9.1 and have different servers for each environment , but the CD server is not generating logs in the data folder , I have given the path of the data folder in the ...
Rohan Bhateja's user avatar
1 vote
1 answer
995 views

Use Seq for logging with log4net instead of text file

Using Sitecore 8.2. I want to log to SEQ instead of a standard file for the Sitecore log. Since Sitecore uses log4net, I've been looking at this documentation: https://docs.getseq.net/docs/using-...
devzero's user avatar
  • 439
6 votes
0 answers
431 views

Log Sitecore errors as exceptions instead of trace in application insights

By default, Sitecore application insights config logs Sitecore errors as traces instead of exceptions this means application insights dashboard and alerts are unaware of the exception occurring in a ...
Bevin's user avatar
  • 111
1 vote
1 answer
2k views

Sitecore Log4net RollingFileAppender not working

I've trying to implement RollingAppender for general log files in sitecore 8.1 update 2 solutions. The moment I change below <appender name="LogFileAppender" type="log4net.Appender....
nari447's user avatar
  • 407
4 votes
1 answer
2k views

Log file not updated

I am running Sitecore 9 and am experiencing moments when the Sitecore log is no longer updated (i.e. written to). I have a default log4net configuration. Only addition I have is a rolling log file ...
Joost's user avatar
  • 1,907
1 vote
1 answer
2k views

"WARN Request is redirected to document not found page" message shown in the log file

I have configured CD server according to the official document and spreadsheet and also disabled anonymous IIS access to admin, login, shell folders and default.aspx file. However, after changing IIS ...
TestUser's user avatar
  • 375
1 vote
0 answers
565 views

Error message "loading hook" for content search

I have configured two Sitecore servers (CM and CD) using Sitecore 8.2.7. On CD server, Sitecore page is properly shown on the browser but there is a error message shown in the log folder as shown ...
TestUser's user avatar
  • 375
0 votes
1 answer
324 views

HttpException on Sitecore logs

I have been working with Sitecore version 8.2, with three to four sites in one instance. Everything work fine, but in logs the following errors are seen. ERROR Application error. Exception: System....
rams's user avatar
  • 317
3 votes
1 answer
3k views

Accessing log files in application insights for Sitecore 9 in Azure app service

I've been reading several blog posts about application insights and Sitecore logs, and I've not been able to get the proper configuration working. This is using Sitecore 9 ARM templates on Azure app ...
Ken McAndrew's user avatar
  • 5,092