AWS CloudWatch Logs set up过程中踩的坑

早就听说过一个笑话,zz不正确就不讲前半句了,如果你们组有一个人阿里云了全组就阿里云了。在贵司接触了隔壁的AWS后感觉此话不假。

will keep this updated:

1.When trying to config the CWL agent using local cofig file, meet error:


    Configuration validation second phase failed

    \======== Error Log ========  
    2019/10/24 09:40:31 I! AmazonCloudWatchAgent Version 1.230621.0.  
    2019/10/24 09:40:31 E! Error parsing /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.toml, open /usr/share/collectd/types.db: no such file or dir  
    ectory  
    ubuntu@ip-10-0-3-41:~$ sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-config-wizard
    

感觉是贵组写bug了。
Solution: https://linuxacademy.com/comm...

mkdir _/usr/share/collectd
cd /usr/share/collectd
touch types.db

你可能感兴趣的:(AWS CloudWatch Logs set up过程中踩的坑)