Highlighted

content activation/deactivation are not getting logged in application/error.log file on author

Avatar

Avatar

basantrai

Avatar

basantrai

basantrai

01-08-2019

content activation/deactivation are not getting logged in application/error.log file on author in one of the environment(QA).

Other environment it is working fine.

I am not able to track activation/deactivation activities of pages/content on author.

Please provide the way to enable logging for this.

Thanks,

Basant

Replies

Highlighted

Avatar

Avatar

hamidk92094312

Employee

Avatar

hamidk92094312

Employee

hamidk92094312
Employee

01-08-2019

You may want to check your log level in the affected instance and compare it with the instances where the logging works as expected. You can the log level using the following link:

http://host:port/system/console/slinglog

Highlighted

Avatar

Avatar

lmha

Employee

Avatar

lmha

Employee

lmha
Employee

01-08-2019

Hi basantrai,

Please check the replication agent settings itself, there is a 'Log Level' setting within the agent settings.

For example:

1. Navigate to Tools>Deployment>Replication

2. Click Agents on author

3. Click the Default Agent (publish)  (this is the out of the box name for the default Publish replication agent -- your instance may have a different replication agent name)

4. Within the replication agent UI, click the 'Edit' button to open the Agent Settings editor

5. Review the Log Level [1] (search document for 'Log Level' ) and confirm this value is the same as other environments -- default OOTB has 'Info' log level

Screencap from my instance:

Screen Shot 2019-08-01 at 11.38.35 AM.png

If the Log Level is not the issue, please double check the configured loggers [2] and ensure that the existing logs are not handling logger "com.day.cq.replication.Agent" -- if another log has this logger set -- review that log file to see if the replication logs are present there , I have attached the below image to show the default logs and configured logger for the logs -- observe no listing of com.day.cq.replication.Agent

Screen Shot 2019-08-01 at 11.35.29 AM.png

Regards,

Lisa

[1] Replication

[2] Logging

Highlighted

Avatar

Avatar

basantrai

Avatar

basantrai

basantrai

02-08-2019

Hi Lisa,

Thanks for your response.

I tried the above steps but did not work.

logback logging is configured on author for logging.

I have enabled the debug mode on that, now it is getting logged on application logs.

I tried to log the activation/deactivation on separate log file but that is not working.

Highlighted

Avatar

Avatar

Gokul2011

Avatar

Gokul2011

Gokul2011

02-08-2019

Hi Basant,

As suggested by Lisa, have you configured separate logger named : "com.day.cq.replication.Agent".

Also please ensure you configured log service on both section and keep the same log name . Ex: replication.log

a.Apache Sling Logging Logger Configuration.

b.Apache Sling Logging Writer Configuration

Highlighted

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

958

Correct Answer

820

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

958

Correct Answer

820
Arun_Patidar
MVP

02-08-2019

You can see logs here also

/etc/replication/agents.author/<ReplicationAgentName>.log.html

e.g.

Default Agent (publish)

/etc/replication/agents.author/publish.log.html

Highlighted

Avatar

Avatar

basantrai

Avatar

basantrai

basantrai

04-08-2019

Hi Arun,

Thanks for your answer.

I already verified the suggested one when I started facing the problem.

I have to maintain the historical logs(6 months) for replication.

That is why I want to enable logging for replication separately.

Thanks,

Basant Rai

Highlighted

Avatar

Avatar

basantrai

Avatar

basantrai

basantrai

04-08-2019

Thanks for your response.

That did not worked that is why I am reachng to the forum.

Please suggest if there is otheroption.

Thanks,

Basant

Highlighted

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

958

Correct Answer

820

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

958

Correct Answer

820
Arun_Patidar
MVP

04-08-2019

Hi,

As suggested by others you need to setup logger for replication.

I tried and it works

Screenshot 2019-08-04 at 8.15.16 PM.png

Screenshot 2019-08-04 at 8.14.54 PM.png

If this doesn't work then it is possible there might be another logger configured for com.day.cq.replication.Agent