I have Cloudwatch Agent installed on the server, and the server logs are in the following format:
2019-02-22 10:41:49,903 INFO Some log message
I have date format for the log specified in awslogs.conf the followin gway:
datetime_format = %Y-%m-%d %H:%M:%S,%f
When I check the log uploaded by the agent in the cloudwatch, I still see the date as a part of the part of each log entry, which means that the log agent doesn't correctly recognize log entry dates.
Also, in the awslogs.log I see this error: reason: timestamp could not be parsed from message.
Any ideas what's wrong with my datetime_format?