As per OMS portal Azure Custom logs are in preview mode. I am not able to find any link, providing an expected date of general availability. Can neone help me with that ??
Also I am not able to find any link providing information on how to activate custom logs for a virtual machine scale set ? Other than log analytics? is there is any way to capture custom logs ??
Currently, Custom Logs is in preview, you need enable it on OMS Portal firstly.
More information about this you could check this question.
If you want to collect log from VMSS, you need install oms agent on it. You could use CLI to do this, for Linux:
az vmss extension set --name OmsAgentForLinux --publisher Microsoft.EnterpriseCloud.Monitoring --resource-group <nameOfResourceGroup> --vmss-name <nameOfNodeType> --settings "{'workspaceId':'<OMSworkspaceId>'}" --protected-settings "{'workspaceKey':'<OMSworkspaceKey>'}"
For Windows:
az vmss extension set --name MicrosoftMonitoringAgent --publisher Microsoft.EnterpriseCloud.Monitoring --resource-group <nameOfResourceGroup> --vmss-name <nameOfNodeType> --settings "{'workspaceId':'<OMSworkspaceId>'}" --protected-settings "{'workspaceKey':'<OMSworkspaceKey>'}"
More information about Custom logs in Log Analytics you could check this official document.