Hello Souvik Saha Choudhary
To collect logs from your ColdFusion application running in AKS and send them to a Log Analytics workspace, you can use the Azure Monitor for containers solution.
Azure Monitor for containers can collect logs from the container's stdout and stderr streams, as well as from application logs written to the file system. To collect logs from the file system, you can use a Fluentd or Logstash daemonset to tail the log files and send them to Azure Monitor for containers.
Here are the high-level steps to configure Azure Monitor for containers to collect logs from your ColdFusion application:
- Deploy a Fluentd or Logstash daemonset to your AKS cluster. You can use a pre-built image or create your own image that includes the necessary plugins to tail the log files.
- Configure the Fluentd or Logstash daemonset to tail the log files and send them to Azure Monitor for containers. You can use the Azure Monitor for containers Fluentd or Logstash plugin to send the logs to Azure Monitor.
- Enable monitoring of your AKS cluster in the Azure portal from Azure Monitor.
- Verify that logs from your ColdFusion application are being collected in the Log Analytics workspace.
Hope that helps.