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:|[…]-File-Logssection

you’ll want to edit the Logs Section

to complement Greg’s answer. This is a good example:
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"