Assuming that you are looking to sent logs to Splunk, check out this blog on how to use the Splunk logging driver with your ec2 instances!
https://www.splunk.com/blog/2016/07/13/docker-amazon-ecs-splunk-how-they-now-all-seamlessly-work-together.html
... View more