GG logs are pushed intermittently to cloudwatch

0

Hello,

We are using GreenGrass v2 and would like to have logs pushed as frequently as possible. We understand the limitation for certain components (eg telemetry) but our application logs should be sent as near real time as we can. Currently, regardless of the configurations set our logs are only sent intermittently to CloudWatch. Logs are seen every few hours or even few days.

Could anyone please help us understand whats happening?

We are using the following configuration:

      'aws.greengrass.Nucleus': {
        componentVersion: '2.4.0',
        configurationUpdate: {
          merge: `{
            "logging" : {
              "level" : "DEBUG",
              "format" : "JSON"
            }
          }`,
        },
      },
      'aws.greengrass.LogManager': {
        componentVersion: '2.2.1',
        configurationUpdate: {
          merge: `{
            "logsUploaderConfiguration": {
              "systemLogsConfiguration": {
                "uploadToCloudWatch": "true",
                "minimumLogLevel": "DEBUG",
                "diskSpaceLimit": "2",
                "diskSpaceLimitUnit": "KB",
                "deleteLogFileAfterCloudUpload": "true"
              },
              "componentLogsConfigurationMap": {
                "com.component1": {
                  "minimumLogLevel": "DEBUG",
                  "diskSpaceLimit": "2",
                  "logFileDirectoryPath": "/greengrass/v2/logs/",
                  "logFileRegex": "com.component1\\\\w*.log",
                  "diskSpaceLimitUnit": "KB",
                  "deleteLogFileAfterCloudUpload": "true"
                },
                "com.component2": {
                    "minimumLogLevel": "DEBUG",
                    "diskSpaceLimit": "2",
                    "logFileDirectoryPath": "/greengrass/v2/logs/",
                    "logFileRegex": "com.component2\\\\w*.log",
                    "diskSpaceLimitUnit": "KB",
                    "deleteLogFileAfterCloudUpload": "true"
                },
                "aws.greengrass.SageMakerEdgeManager": {
                  "minimumLogLevel": "DEBUG",
                  "logFileDirectoryPath": "/greengrass/v2/logs/",
                  "logFileRegex": "aws.greengrass.SageMakerEdgeManager\\\\w*.log",
                  "diskSpaceLimit": "2",
                  "diskSpaceLimitUnit": "KB",
                  "deleteLogFileAfterCloudUpload": "true"
                },
                "aws.greengrass.SecureTunneling": {
                  "minimumLogLevel": "DEBUG",
                  "logFileDirectoryPath": "/greengrass/v2/logs/",
                  "logFileRegex": "aws.greengrass.SecureTunneling\\\\w*.log",
                  "diskSpaceLimit": "2",
                  "diskSpaceLimitUnit": "KB",
                  "deleteLogFileAfterCloudUpload": "true"
                }
              }
            },
            "periodicUploadIntervalSec": "10"
          }`,
        },
      },
3개 답변
0

Hi, there. I'm sorry for the inconvenience. We are aware of this requirement and have had this feature in our roadmap. But, unfortunately, it's not current supported by LogManager.

You can find details about this issue here under "Log delays" section.

Lihao
답변함 2년 전
  • Thank you for your answers, but the documentation states that 'The log manager component also uploads new logs periodically. By default, the log manager component uploads new logs every 5 minutes. ' - which is not happening for us as we only see logs are many hours or days. Could you please let us know what can we revise so that the logs are updated every 5min ?

  • Oh, hours or days sounds not right. Is there any log loss? Also, if you could provide logs, it'll help us investigate this issue better.

0

Hi @lihao

How do we check for logs loss? What logs can we provide you that would you help you investigate the issue'?

답변함 2년 전
0

Our problem was solved by changing our configuration file.

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인