简体   繁体   English

是否有任何方法可以将Window Server 2012/16 EC2实例日志备份直接自动化到AWS S3

[英]Is there any way to automate Window Server 2012/16 EC2 instance log backup directly to AWS S3

就像我上面已经提到的,我正在寻找一种自动将Windows Server的日志备份备份到AWS S3的方法。

There are multiple ways to do this. 有多种方法可以做到这一点。

  1. You can write a batch script which uses aws cli to push your logs to s3. 您可以编写一个使用aws cli将日志推送到s3的批处理脚本。 You can schedule a task which will execute this script. 您可以计划将执行此脚本的任务。 You also have to attach IAM role with s3 permissions to your windows EC2. 您还必须将具有s3权限的IAM角色附加到Windows EC2。
  2. You can also stream this logs to cloudwatch using cloudwatch agent. 您还可以使用cloudwatch代理将此日志流式传输到cloudwatch。 Then you can stream this logs directly to s3. 然后,您可以将此日志直接流式传输到s3。 ex. 恩。 Using CloudWatch Logs Subscription Filter 使用CloudWatch Logs订阅过滤器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 需要一种在 windows ec2 实例中挂载或共享 s3 或任何其他 aws 存储服务的方法 - Need a way to mount or share s3 or any other aws storage service in windows ec2 instance 还原AWS EC2 Windows Server 2012 R2管理员密码 - Restore AWS EC2 Windows Server 2012 R2 Administrator's password 有什么方法可以通过自动转换为zip格式然后每天以自动方式将aws s3存储桶传输Windows文件 - Is there any way to transfer windows files by automatically convert in zip format and then to aws s3 bucket in an automate way daily 以动态和编程方式将 s3 存储桶安装到 Windows ec2 实例 - Dynamical and programmatical mounting a s3 bucket to a windows ec2 instance AWS EC2实例Windows的SSh权限 - SSh permissions for aws EC2 instance Windows 添加用户以登录 AWS EC2 实例 - Add user to login to an AWS EC2 instance EC2 快照会备份没有卷的实例吗? - Will An EC2 Snapshot backup An Instance That Does Not Have A Volume? AWS EC2 实例 -> Microsoft Windows Server -> 流畅运行 Power BI + 成本效益 - AWS EC2 instance -> Microsoft Windows Server -> Run Power BI Smoothly + Cost Effective 带有AWS EC2的ZeroMQ服务器/客户端 - ZeroMQ server/client with AWS EC2 如何在AWS EC2实例上增加视频内存? - How to increase Video Memory on AWS EC2 instance?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM