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
1answer
42 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 ...
1
vote
1answer
59 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 ...
1
vote
1answer
68 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 ...
0
votes
1answer
95 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 ...
0
votes
1answer
82 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 ...
0
votes
0answers
27 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 ...
0
votes
0answers
63 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.
0
votes
0answers
28 views

Custom logging in Sitecore 9.1 update 1

I have to implement logging in Sitecore to write custom logs in Azure Application Insights. I want to use Serilog to achieve it. Any reference will be helpful for me. Version: Sitecore 9.1 update 1 ...
4
votes
3answers
211 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 ...
1
vote
0answers
41 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 ...
0
votes
1answer
152 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?
2
votes
1answer
99 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. ...
1
vote
1answer
62 views

Managed Cloud: 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), ...
0
votes
1answer
73 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 ...
0
votes
2answers
52 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 ...
1
vote
0answers
80 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 ...
1
vote
0answers
91 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 ...
3
votes
1answer
154 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 ...
0
votes
1answer
66 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 ...
1
vote
0answers
64 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 ...
2
votes
1answer
427 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 ...
3
votes
2answers
932 views

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

We identify many repetitive warnings into Sitecore log files: WARN Failed to create counter 'Sitecore.Analytics.XConnect\XConnect Model Converter | Convert To XConnect Interaction Operations / sec'. ...
3
votes
1answer
156 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 ...
2
votes
1answer
291 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, ...
7
votes
1answer
255 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 ...
0
votes
1answer
110 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,...
0
votes
1answer
225 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 ...
1
vote
1answer
626 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-...
5
votes
0answers
281 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 ...
1
vote
1answer
1k 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....
4
votes
1answer
1k 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 ...
1
vote
1answer
1k 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 ...
1
vote
0answers
388 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 ...
0
votes
1answer
229 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....
3
votes
1answer
2k 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 ...
3
votes
4answers
549 views

Sitecore custom log file is empty

Please help me what am missing in writing log for the exception. Always am getting an empty file Logger in Sitecore.Config <?xml version="1.0" encoding="UTF-8"?> <log4net> <...
3
votes
1answer
891 views

Create One Custom Log file for each day in Sitecore Custom Log

I am using below configuration for log4net appender to log entries into Custom log file. The requirement is to have one log file for one day and all logs should append to this one file. <appender ...
3
votes
1answer
5k views

Could not create Appender [AdoNetAppender] of type [log4net.Appender.AdoNetAppender, log4net] error

I'm trying to patch an AdoNetAppender using the log4net.Appender.AdoNetAppender, log4net appender by doing the following: <?xml version="1.0" encoding="utf-8" ?> <configuration xmlns:patch="...
0
votes
1answer
94 views

How to automate analyzing log files?

I am aware of log analyzer. But instead of selecting files manually one by one and analyzing has any one automated analyzing all the files for errors, if so how ?
4
votes
2answers
441 views

How to automatically clean up Commerce Engine log files?

Today we had a server go down because Commerce Engine filled up the disk space with log files. How can we configure it to automatically delete older log files? We're on Sitecore Commerce 8.2.1.
1
vote
1answer
2k views

How/Why would the scheduler website be getting redirected to the 404 page?

Looking at the log file on our CM server, I noticed that there are a lot of warnings getting logged as follows: 6128 00:01:09 WARN Request is redirected to document not found page. Requested url: /...
10
votes
1answer
2k views

Sitecore PaaS Log files missing

Currently, We are on Sitecore PaaS. There are some issues and we are not able to find out the root cause of those issues. We tried to find out some clues in Sitecore log file but We noticed that there ...
6
votes
3answers
864 views

Filter standard Sitecore log messages into separate logs

We would like to make the main Sitecore log file more clean,and filter away all the unnecessary information that makes finding errors and other relevant information harder. After upgrading to Sitecore ...
4
votes
2answers
1k views

How to log service layer exceptions in Sitecore log files?

The solution is having two projects Web and Service Layer. Service Layer do not have any dependency with Sitecore. However the exceptions needs to be logged into Sitecore log files in data folder. ...
5
votes
2answers
591 views

How can I flush the logfile?

So I have a small snippet of code. string requestedUrl = args.Context.Request.Url.AbsoluteUri; Log.Warn($"Requested Url: '{requestedUrl}' being checked.", this); var redirectTarget = _redirector....
0
votes
2answers
781 views

Custom logging in Sitecore 8.2 update 4

I would like to implement custom logging in my sc8.2u4 instance. The patch config has this code. When I browse CMS it gives the error - Could not find configuration node: watchers/media/folder I ...
8
votes
2answers
3k views

Log file warning about caching and DefaultScavengeStrategy

I see a ton of these warnings in my Sitecore log file, using 8.2 Update 3: 5304 01:57:06 WARN web[isLanguageFallbackValid] cache is cleared by Sitecore.Caching.Generics.Cache`1+...
0
votes
0answers
101 views

Add feature to Audit Trail Module to store value of Changed Item

I am trying to add a feature on this module - http://klpatil.github.io/Sitecore-Audit-Trail/ so that I can store the old and new changed value of the Sitecore Item in the Logs Table. But I am not ...
4
votes
2answers
313 views

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

Our Search.Log files are becoming huge (50-100 MB daily). In it I can see a large amount of queries regarding Contacts and Contactlists to analytics index that run 24/7. Query - (type_t:(contact) ...
0
votes
1answer
276 views

Logging from Application Start Event

I have added the following code to my Application Startup, but the INFO is not showing up in my logs. Sitecore 7.5 Is this code being called at all? If not, what am I doing wrong? public class ...