Open TripleEmcoder opened 4 years ago
You can use the LogMonitor for that.
Please refer to the section (How to apply the new feature to existing IIS tags) at https://blogs.iis.net/jeonghwan/how-to-use-iis-insider-docker-tag how to use the LogMonitor.
I too am facing same problem to redirect iis conatiner image logs to default aws cloudwatch log configuration. I can't even use insider image as i am using Images based on windows server 2016 ltsc.
Do you think i should move to self hosted way than using iis for hosting and servicmonitor as entrypoint.
Usually Docker containers output logs to the console, which lets users access them with
docker logs
orkubectl logs
. That is not the case with IIS and ServiceMonitor - we get nothing. Classic ASP.NET applications do have their logs though. It would be a great feature if we could pass a second argument to ServiceMonitor with a log file path, which would then be read (like withtail -f
) and written to the standard output for Docker tools to consume.