Hot answers tagged

19 votes
Accepted

GeoIP-related error in my log files, but GeoIP not enabled

This looks like it's part of the Device Detection feature within the Sitecore.CES configuration. It's fair that you would want device detection yet not have the GeoIP feature of it enabled. Have you ...
user avatar
  • 4,134
16 votes
Accepted

Change the name of the output log file

You can use a RollingFileAppender instead of the default Sitecore one and configure it to roll by date. You can find samples in the log4net config examples section of the documentation. Specifically ...
user avatar
  • 13.7k
16 votes

GeoIP-related error in my log files, but GeoIP not enabled

Ensure that the following setting in the Sitecore.Analytics.config file is set to false <setting name="Analytics.PerformLookup" value="false" />
user avatar
  • 1,314
16 votes
Accepted

Sitecore log analyzer supported on latest versions?

The underlying logging framework that Sitecore uses is Apache Log4Net, and this has not changed for a very long time (since early 6.x). Even the version used is the same, 1.2.11 I believe. The ...
user avatar
  • 13.7k
16 votes
Accepted

Sitecore PaaS Log files missing

Accessing Sitecore XP logs and diagnostics information on Azure Web Apps differs from the on-premise approach. This article explains how to collect basic Sitecore diagnostics information, such as logs ...
user avatar
  • 17.8k
12 votes
Accepted

How can I split logs by log level/priority

In log4net you can use a filter on the level in your appender like this: <threshold value="DEBUG"/> <filter type="log4net.Filter.LevelRangeFilter"> <levelMin value="DEBUG" /> &...
user avatar
  • 19.2k
11 votes

Handle all Custom Errors in Sitecore MVC

So for Sitecore - a global error handler in the global.asax will not work properly. The better way to do it is to override the code that calls each rendering and handle the errors there. ...
user avatar
  • 18.9k
11 votes
Accepted

Log file warning about caching and DefaultScavengeStrategy

The DefaultScavengeStrategy is responsible for scavenging (freeing up) memory from your caches when your application is maxing out on its memory resources, as determined by the configured cache size ...
user avatar
10 votes

How/Why would the scheduler website log attempts to access it's home page?

One thing to be aware of, is that in Sitecore's Site Provider, order of sites is incredibly important. If for some reason, your order has become unordered.. and the scheduler site shows up in the ...
user avatar
  • 14.4k
10 votes
Accepted

Sitecore.Diagnostics.Log.Error() method is not working Inside a Static Class

Actually, recommended practice would be to use a Namespace as your logger, as opposed to new object() or anything else. Just using "YourLoggerName" would not be flexible enough to allow admins to ...
user avatar
  • 24.4k
10 votes
Accepted

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

How it works Have a look at the App_Config/Sitecore/Azure/Sitecore.Cloud.ApplicationInsights.config which gets deployed to all CM/CD/PRC/REP roles. You will see that all the built-in log4net ...
user avatar
  • 4,881
9 votes
Accepted

How can I flush the logfile?

It's not the problem with the Log.Warn being called in a httpRequestBegin processor or from a normal page. It's just your browser caching the redirect. First time you do a call to a page which should ...
user avatar
8 votes

Sitecore Logging (Log4Net) Log to Database as Well as Text Files

Yes. You need a new <appender>. First you need to set up a table to receive the logging information: CREATE TABLE [dbo].[Log] ( [Id] [int] IDENTITY (1, 1) NOT NULL, [Date] [datetime] NOT ...
user avatar
  • 24.4k
8 votes
Accepted

WARN Could not register counter in HealthMonitor warnings in logs

I think this URL speaks to your issue: https://kb.sitecore.net/articles/404548 Among the other suggestions there, try to reload the perf counters: Start an administrator command prompt. Run unlodctr ...
user avatar
  • 1,289
8 votes
Accepted

Cannot finish Analytics page tracking

Configuring a dedicated Content Management server Normally, pure CM servers should not read and write interactions and contacts in the collection database. See this official documentation page for ...
user avatar
8 votes
Accepted

Logging from Application Start Event

When working with the Global.asax file, even though the question is inheriting from Sitecore.ContentSearch.SolrProvider.NinjectIntegration.NinjectApplication, if you keep digging down, eventually you'...
user avatar
  • 14.4k
8 votes

Log file warning about caching and DefaultScavengeStrategy

If you do not want to disable cache size limits (which in our situation can cause memory issues when building large indexes on Azure WebApps), you can use the following Sitecore setting to change the "...
user avatar
  • 505
7 votes

Logging Changes in Sitecore 8.1 Made by Content Authors

Sounds like you need Sitecore Sidekick Audit Logger - its a package you can install and provides much more detailed audit logging than the standard log files. You can search the log: Search by item: ...
user avatar
  • 18.9k
7 votes

Sitecore custom log file is empty

Two possible problems that could cause this i can think of: You are referencing log4net.dll instead of Sitecore.Logging.dll, You need to reference Sitecore.Logging.dll in your project for Sitecore ...
user avatar
  • 2,074
6 votes
Accepted

Logging Changes in Sitecore 8.1 Made by Content Authors

With this solution, it will create a new log file call audit.{date}.log and log any change the users make to the content. To achieve this, the pipeline subscribes the audit class to the item:creating, ...
user avatar
6 votes

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

Sitecore supports client-side event logging using JSNLog. Sitecore client logging uses JSNLog which has been wrapped to allow Sitecore to configure it via a patch and to make use of the existing ...
user avatar
6 votes
Accepted

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

First, start by adding multiple appender to your app.config: <appender name="site1" type="log4net.Appender.RollingFileAppender"> <file value="site1.txt" /> <...
user avatar
5 votes

Sitecore Custom Logger where each item represents its own log file

As Sitecore logging is just a wrapper on top of log4net, you should create an appender (and maybe logger) in your code (assuming that the "processor" you mention is some custom code). I found this ...
user avatar
  • 19.2k
5 votes

Sitecore log analyzer supported on latest versions?

I don't think that it make any difference which Sitecore version you are using. It just analyze logs (which are simply .txt files). I am constantly using it on 8.1 and 8.2. No problems found. I ...
user avatar
5 votes
Accepted

Huge Search.Log due to List Manager (while using EXM)?

First of all, you should disable List Manager on the processing server. The search messages in logs are likely caused by the Sitecore.ListManagement.Analytics.UnlockContactListsAgent class. It looks ...
user avatar
5 votes
Accepted

How to log service layer exceptions in Sitecore log files?

Sitecore logging system is wrapper under log4net. It is even configured not under <sitecore> node in web.config. To use Sitecore log files you should have 3 things: Configured <log4net> ...
user avatar
  • 3,436
4 votes

WARN Could not register counter in HealthMonitor warnings in logs

There is a very good article on https://community.sitecore.net/developers/f/8/t/531 which deals with the same issue. I actually followed it up last year and it solved the issue that you are having as ...
user avatar
4 votes

Sitecore Logging (Log4Net) Log to Database as Well as Text Files

You can start by creating a table for logging, Preferably in your own separate Database, Then you can update your Log4Net configurations to use the SQL appender, Alex Shyba article shows how you can ...
user avatar
  • 2,074
4 votes
Accepted

Get last time job ran date/time

You cannot. When Sitecore executes any job, it runs <job> pipeline defined in Sitecore.config (or web.config in older versions). This pipeline has SignalStart and SignalEnd processors, but the ...
user avatar
4 votes

Custom logging in Sitecore 8.2 update 4

You are correct in that you can patch in log4net settings in recent Sitecore releases. But your patch file is unrelated to your error, as Zach already pointed out. My guess; given that the missing ...
user avatar
  • 24.4k

Only top scored, non community-wiki answers of a minimum length are eligible