Troubles finding details or references for parsing log file to CloudWatch

Hi, i would start to use cloudwatch agent to pass log file log group in cloudwatch. Someone can provide details or reference what require to parae the logfile to cloudwatch? I’m not able to find it. Thanks

I think this is what you are looking for: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-Configuration-File-Details.html#CloudWatch-Agent-Configuration-File-Logssection|https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-Configuration-File-Details.html#CloudWatch-Agent[…]-File-Logssection

you’ll want to edit the Logs Section

to complement Greg’s answer. This is a good example:
https://gist.github.com/csereno/deac72776418173c4f3169b3f34c1246
Notice this code under the logs section

                "file_path": "/var/log/messages",
                "log_group_name":  "/ec2/var/log/messages",
                "log_stream_name": "{instance_id}_{hostname}",
                "timezone": "Local"
              },```