New source log file generated daily for APMIA log monitor

book

Article ID: 209383

calendar_today

Updated On:

Products

CA Application Performance Management SaaS

Issue/Introduction

Trying to configure APMIA log monitor on one of the windows machine.

Source log file is generating everyday new file with current date like (2021-02-18)

Please advise how to do this.

Environment

Release : SAAS

Component : APM SAAS ENTERPRISE

Resolution

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/dx-apm-saas/SaaS/implementing-agents/infrastructure-agent/log-monitoring.html

There is a command argument that you can execute a Windows/Linux binary or shell/batch file. (Engineering verified code on Windows.)

If you want to capture  the last file in a directory , here  are some examples.:  Then simply pipe or otherwise use the file name.

https://devblogs.microsoft.com/oldnewthing/20120801-00/?p=6993

https://stackoverflow.com/questions/11539726/how-to-get-the-most-recent-file-using-a-batch-file

https://stackoverflow.com/questions/31084858/find-latest-file-in-a-directory-whose-name-starts-with-using-batch-script