0

Ich hatte gehofft, jemand könnte dabei helfen, ich versuche, Protokolle von einem Windows Server 2012 mit EC2config-Service zu streamen.EC2Config Cloudwatch Protokolle Streaming funktioniert nicht

Ich habe die folgende Dokumentation folgt: https://aws.amazon.com/blogs/devops/using-cloudwatch-logs-with-amazon-ec2-running-microsoft-windows-server/

Leider nichts Streaming Cloudwatch-Logs.

Hier ist die Json Ich verwende:

{ 
"EngineConfiguration": { 
    "PollInterval": "00:00:15", 
    "Components": [ 
     { 
      "Id": "ApplicationEventLog", 
      "FullName": "AWS.EC2.Windows.CloudWatch.EventLog.EventLogInputComponent,AWS.EC2.Windows.CloudWatch", 
      "Parameters": { 
       "LogName": "Application", 
       "Levels": "1" 
      } 
     }, 
     { 
      "Id": "SystemEventLog", 
      "FullName": "AWS.EC2.Windows.CloudWatch.EventLog.EventLogInputComponent,AWS.EC2.Windows.CloudWatch", 
      "Parameters": { 
       "LogName": "System", 
       "Levels": "7" 
      } 
     }, 
     { 
      "Id": "SecurityEventLog", 
      "FullName": "AWS.EC2.Windows.CloudWatch.EventLog.EventLogInputComponent,AWS.EC2.Windows.CloudWatch", 
      "Parameters": { 
      "LogName": "Security", 
      "Levels": "7" 
      } 
     }, 
     { 
      "Id": "ETW", 
      "FullName": "AWS.EC2.Windows.CloudWatch.EventLog.EventLogInputComponent,AWS.EC2.Windows.CloudWatch", 
      "Parameters": { 
       "LogName": "Microsoft-Windows-WinINet/Analytic", 
       "Levels": "7" 
      } 
     }, 
     { 
      "Id": "IISLog", 
      "FullName": "AWS.EC2.Windows.CloudWatch.IISLogOutput,AWS.EC2.Windows.CloudWatch", 
      "Parameters": { 
     "LogDirectoryPath": "C:\\inetpub\\logs\\LogFiles\\W3SVC1" 
     "AccessKey": "", 
     "SecretKey": "", 
     "Region": "eu-west-1", 
     "LogGroup": "Web-Logs", 
     "LogStream": "IIStest" 
      } 
     }, 
     { 
      "Id": "CustomLogs", 
      "FullName": "AWS.EC2.Windows.CloudWatch.CustomLog.CustomLogInputComponent,AWS.EC2.Windows.CloudWatch", 
      "Parameters": { 
       "LogDirectoryPath": "C:\\CustomLogs\\", 
       "TimestampFormat": "MM/dd/yyyy HH:mm:ss", 
       "Encoding": "UTF-8", 
       "Filter": "", 
       "CultureName": "en-US", 
       "TimeZoneKind": "Local" 
      } 
     }, 
     { 
      "Id": "PerformanceCounter", 
      "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch", 
      "Parameters": { 
       "CategoryName": "Memory", 
       "CounterName": "Available MBytes", 
       "InstanceName": "", 
       "MetricName": "Memory", 
       "Unit": "Megabytes", 
       "DimensionName": "", 
       "DimensionValue": "" 
      } 
     }, 
     { 
      "Id": "CloudWatchLogs", 
      "FullName": "AWS.EC2.Windows.CloudWatch.CloudWatchLogsOutput,AWS.EC2.Windows.CloudWatch", 
      "Parameters": { 
       "AccessKey": "", 
       "SecretKey": "", 
       "Region": "eu-west-1", 
       "LogGroup": "Win2Test", 
       "LogStream": "logging-test" 
      } 
     }, 
     { 
      "Id": "CloudWatch", 
      "FullName": "AWS.EC2.Windows.CloudWatch.CloudWatch.CloudWatchOutputComponent,AWS.EC2.Windows.CloudWatch", 
      "Parameters": 
      { 
       "AccessKey": "", 
       "SecretKey": "", 
       "Region": "eu-west-1", 
       "NameSpace": "Windows/Default" 
      } 
     } 
    ], 
    "Flows": { 
     "Flows": 
     [ 
      "(ApplicationEventLog,SystemEventLog),CloudWatchLogs", 
    "IISLog" 
     ] 
    } 
} 
} 

Zu diesem Zeitpunkt ich möchte nur die IIS-Protokolle streamen, von meinem den Cloudwatch Log-Gruppe zu verstehen und Strom sollte automatisch erstellen.

+0

Hat Ihre Instanz eine Instanz Profil, das es den Zugang über eine Rolle Uhr Gruppen/s3 Eimer für Protokolle Wolke gewährt? –

Antwort

0

Sieht so aus, als hätte ich ein paar Fehler in der JSON-Datei selbst gemacht, speziell im FLOW-Bereich.

diese Arbeit jetzt Got :)

+1

Jede Chance, die Sie genauer sein können? –

Verwandte Themen