Hi @SujitMahakhud-6487 ,
AMA (Azure Monitor Agent) can collect logs from any directory on the machine as long as it is configured in a data collection rule (DCR). DCRs allow for flexible configuration of data collection, including specifying custom log paths.
So, if your log files are located in the /home/log directory, it may be possible to configure AMA to collect logs from there. You would need to specify the appropriate path in the data collection rule.
However, it is important to note that the directory must have the appropriate permissions for the AMA user account to access the logs. Additionally, it is recommended to follow best practices for log collection and storage, such as limiting the amount of data collected and ensuring proper security measures are in place.