Created
March 27, 2018 12:14
-
-
Save giuliocalzolari/7acc42633d2099bc2de34848e421a784 to your computer and use it in GitHub Desktop.
SSM Log to Cloudwatch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<seelog type="adaptive" mininterval="2000000" maxinterval="100000000" critmsgcount="500" minlevel="info"> | |
<exceptions> | |
<exception filepattern="test*" minlevel="error"/> | |
</exceptions> | |
<outputs formatid="fmtinfo"> | |
<console formatid="fmtinfo"/> | |
<rollingfile type="size" filename="/var/log/message" maxsize="30000000" maxrolls="5"/> | |
<custom name="cloudwatch_receiver" formatid="fmtjs" data-log-group="/aws/ssm/demolog"/> | |
</outputs> | |
<formats> | |
<format id="fmterror" format="%Date %Time %LEVEL [%FuncShort @ %File.%Line] %Msg%n"/> | |
<format id="fmtdebug" format="%Date %Time %LEVEL [%FuncShort @ %File.%Line] %Msg%n ##"/> | |
<format id="fmtinfo" format="%Date %Time %LEVEL %Msg%n"/> | |
<format id="fmtjs" format='{"date":"%Date", "time": "%Time","lev":"%LEVEL","msg":"%Msg","file":"%File","func":"%FullPath"}'/> | |
</formats> | |
</seelog> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment