Skip to main content
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 ...
Kasaku's user avatar
  • 4,184
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 ...
jammykam's user avatar
  • 13.9k
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" />
Phil Burton's 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 ...
jammykam's user avatar
  • 13.9k
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 ...
Vlad Iobagiu's user avatar
  • 18.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" /> &...
Gatogordo's user avatar
  • 20.3k
12 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 ...
Mark Cassidy's user avatar
  • 25.4k
12 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 ...
Zachary Kniebel's user avatar
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. ...
Richard Seal's user avatar
  • 20.8k
11 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 ...
Mark Gibbons's user avatar
  • 5,717
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 ...
Pete Navarra's user avatar
  • 14.7k
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 ...
Marek Musielak's user avatar
  • 24.2k
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 ...
Mark Cassidy's user avatar
  • 25.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 ...
G Killian's user avatar
  • 1,309
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 ...
Dmytro Shevchenko's 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'...
Pete Navarra's user avatar
  • 14.7k
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 "...
Xuntar's 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: ...
Richard Seal's user avatar
  • 20.8k
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 ...
Ahmed Okour's user avatar
  • 2,134
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, ...
Chris Auer's user avatar
  • 13.2k
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 ...
Mahendra Shekhawat's 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" /> <...
Tutku Can Yalcin's 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 ...
Gatogordo's user avatar
  • 20.3k
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 ...
Alan Płócieniak's 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 ...
Serhii Shushliapin's 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> ...
Anton's user avatar
  • 3,861
5 votes
Accepted

How do you push log data to Splunk?

Prerequisites The following must be setup in advance to make logging to Splunk possible. Configure Splunk HEC Note: The following example could use some TLC but gets the job done. Code First step is ...
Michael West's user avatar
  • 18.6k
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 ...
Una Verhoeven's 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 ...
Ahmed Okour's user avatar
  • 2,134
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 ...
Marek Musielak's user avatar
  • 24.2k

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