如何在运行Windows的ElasticBeanstalk环境中启用CloudWatchLogs? [英] How can I enable CloudWatchLogs in an ElasticBeanstalk environment running Windows?
问题描述
我有一个将数据假脱机到平面文件的Web服务。在非EC2原始Windows实例中,我们使用EC2Config服务将日志文件和一些性能计数器泵送到CloudWatch(请参阅此处: http://blogs.aws.amazon.com/application-management/post/Tx1KG4IKXZ94QFK/使用-CloudWatch-Logs-with-Amazon-EC2-Running-Microsoft-Windows-Server )。
I have a webservice that spools out data to a flat file. In non-EC2, raw Windows instances we use the EC2Config service to pump our log files and some performance counters to CloudWatch (See here: http://blogs.aws.amazon.com/application-management/post/Tx1KG4IKXZ94QFK/Using-CloudWatch-Logs-with-Amazon-EC2-Running-Microsoft-Windows-Server ).
如何配置我的应用程序和ElasticBeanstalk以启用CloudWatch登录我的Windows实例?
How can I configure my application and ElasticBeanstalk to enable CloudWatch Logging in my Windows Instance?
推荐答案
如果您只想将日志追加到Elastic Beanstalk设置的原始日志中,请使用@ mike-mckechnie的答案,但不要在底部包含 stop
命令。您还需要将 fetch-config
替换为 append-config
If you want to just append logs to the original ones set up by Elastic Beanstalk, use the answer from @mike-mckechnie, but don't include the stop
command at the bottom. You'll also need to replace fetch-config
with append-config
这篇关于如何在运行Windows的ElasticBeanstalk环境中启用CloudWatchLogs?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!