Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Is there any way to change windows Agent-client-collector log location?

한균우
Tera Contributor

Hi All,

 

I changed acc.yml file's windows log location parameter.

==> Windows location : C:\Servicenow\agent-client-collector\log

 

But still winodws log is generated at C:\ProgramData\ServiceNow\agent-client-collector\log\acc.log

 

Any advice?

3 REPLIES 3

Community Alums
Not applicable

Hi @한균우 ,

For Windows: The location specified by the log-file configuration flag. The default location is: C:/ProgramData/ServiceNow/agent-client-collector/log/acc.log

If the C:/ProgramData directory is hidden (such as on older Windows versions), change the Explorer filter to show hidden elements.

These are the default Log parameters:

log-file The log file location. Default =

Windows: C:/ProgramData/ServiceNow/Agent-client-collector/log
Linux: /var/log/servicnow/agent-client-collector/acc.log

log-file-and-stdout Write logs to the stdout file. Default: false.
log-file-max-age Maximum age, in days, of the log file before it is rotated out of the system memory. Default: 3.
log-file-max-backups Maximum number of log files that can be stored before being rotated out of the system. Default: 3.
log-file-max-size Maximum size, in MB, of the log file before it is rotated out of the system memory. Default: 10.
log-level The log level to be measured by the logs. Available options are: Panic, Fatal, Error, Warn, Info, Debug. Default: Info.

The specified log level represents the lowest level of events displayed in the log. For example, a user who specifies Error sees all Error events, as well as Fatal and Panic events.

 

I don't see other options to change the log location but if you want to do it anyways then configure the agent to use the alternative account (local system/ad whatever you choose) during the install using the install parameters.

 

Hi @Community Alums ,

 

Thanks for kind reply,

I already use install parameter but PrograData/servicenow directory is not moved.

The log file is located in the PrograData\servingenow directory, which has not been changed.

 

Hank.

 

Community Alums
Not applicable

Hi @한균우 ,

Then unfortunately, you cannot change.