I try for several days now to set up my docker-container with a spring-cloud app running to
My best result until now: I got in Cloud-Watch the upper 20 lines of the log (Spring-Brand in Ascii-Art and Spring version) and that's it. At that time the docker on EC2-instance showed the same with "docker logs", however the same docker on my system logged like usually. However, most of my attempts showed neither logging via "docker logs" nor via Cloud-Watch. But again, my app-logging via log4j2 by console-appender runs exactly like configured.
Even my local docker with the app.jar logs as expected (Windows7, Docker Toolbox, no Linux possible, unfortunately). Only on the EC2-instance there is silence with "docker logs".
Configuration:
Can you perhaps give me a hint of something I might have missed?
Why only the first 20 lines of the log (Spring-Header?)
Why don't the appenders show the whished result? I hoped it would be as simple as "Graylog"... chose the right appender-config in log-config and voila, there are the log-entries.
Do you have some links for tutorials where logging from spring-cloud to Cloud-Watch is the topic with all necessary parts and steps explained?
Do you have some snippets (Pom, task-json, other hints), that might help me get this done?
Should it indeed be better to change for an "everything ready" solution like Boxfuse?
Thank you a lot!
PS: I know there are solutions with ELK-Stack and others, but I really would like to try Cloud-Watch first.
You can leave these fields of the task-definition, they said. The system will choose an appropriate default, they said. Don't bother, they said.
Seems that I should have set a value for CPUs in the task-definition... The first couple of lines of log seem to be the only thing, that the 0-CPU-Task is able to produce... no other error message.
I lough crying...