Custom .exe creating close to 500k log files in a week
search cancel

Custom .exe creating close to 500k log files in a week

book

Article ID: 207535

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

Server is running out of space as a result of APM monitoring .exe batch process that restarts frequent creating many files. We need to find a way to disable file creation. Attaching files created in just 10-15 minutes.

Environment

Release : 20.2

Component : APM Agents

Resolution

 https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/application-performance-management/10-7/implementing-agents/microsoft-net-agent/configure-the-net-agent/configure-net-agent-logging.html

1) Set logs to INFO to get smaller logs

2) Set max log size to smaller than now

3) Save far less backup logs 

introscope.agent.log.level   Sets the log level of the agent log.
Default: INFO
Values: INFO, DEBUG
Monitored application restart required: Yes


introscope.agent.log.max.file.size
The maximum size of the log file before output gets rolled into a backup file.
Default: 200 MB
Monitored application restart required: Yes


introscope.agent.log.max.roll.backups
The maximum number of backup log files to keep before the oldest file is deleted.
Default: 4
Monitored application restart required: Yes
Save the file.
Restart the monitored .NET application.

Additional Information

.Net app restarting . So generates a new log each time