BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
kmcnulty1
Fluorite | Level 6

Is there a way to make a change to a configuration file and THEN AVOID restarting the server for the change to take effect. I seem to be able to make the change I want by changing the configuration file and then restarting the server but I am hoping to avoid restarting the server in production because, well... It becomes a huge production to do that. It is for SASPrincipalServices-log4j. I'm just redirecting the log it creates to a different location.

1 ACCEPTED SOLUTION

Accepted Solutions
Kalind_Patel
Lapis Lazuli | Level 10

Unfortunately, 

Changing a log file location requires SAS Services to be restarted, 


Only following changes can be done in logging configuration via SAS Web Admin Console (by using Dynamic Logging Changes), without restarting Services:

  1. Change the logging levels (Increase or decrease log details)
  2. Logging categories addition

For any changes in Log4j configuration file, you must restart the services to make the change in effect, and your requirement can only be fulfilled by modifying Log4j file:

 

Task
Log4j Configuration File
Dynamic Logging Changes
Change the logging levels.
Green check mark
Green check mark
Add a logging category.
Green check mark
Green check mark
Changes persist after web application server restarts.
Green check mark
 
Add or change an appender to log to console, file, socket, or ARM.
Green check mark
 
Change a log filename or location.
Green check mark
 
Change the layout pattern for the log message.
Green check mark
 
Track user logons. You can monitor usage patterns by logging activity for SAS web application logons.
Green check mark

 

Refer this document for more information: 
https://documentation.sas.com/?docsetId=bimtag&docsetTarget=p0qy7oulxf2ot7n1bcavt6difgu3.htm&docsetV...

View solution in original post

2 REPLIES 2
Kalind_Patel
Lapis Lazuli | Level 10

Unfortunately, 

Changing a log file location requires SAS Services to be restarted, 


Only following changes can be done in logging configuration via SAS Web Admin Console (by using Dynamic Logging Changes), without restarting Services:

  1. Change the logging levels (Increase or decrease log details)
  2. Logging categories addition

For any changes in Log4j configuration file, you must restart the services to make the change in effect, and your requirement can only be fulfilled by modifying Log4j file:

 

Task
Log4j Configuration File
Dynamic Logging Changes
Change the logging levels.
Green check mark
Green check mark
Add a logging category.
Green check mark
Green check mark
Changes persist after web application server restarts.
Green check mark
 
Add or change an appender to log to console, file, socket, or ARM.
Green check mark
 
Change a log filename or location.
Green check mark
 
Change the layout pattern for the log message.
Green check mark
 
Track user logons. You can monitor usage patterns by logging activity for SAS web application logons.
Green check mark

 

Refer this document for more information: 
https://documentation.sas.com/?docsetId=bimtag&docsetTarget=p0qy7oulxf2ot7n1bcavt6difgu3.htm&docsetV...

kmcnulty1
Fluorite | Level 6

Also SAS support recommended using Symbolic Links instead to move my log files to another location to avoid changing the configuration file altogether.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1331 views
  • 1 like
  • 2 in conversation