2

Is there a way to push POSIX syslog records directly to AWS cloudwatch? I know Cloudwatch can be rigged to look at the /var/log/messages files and similar.

But is there a way -- a sylog.conf(5) setting, or a rfc5424 compatible listener, or some such thing -- to send log messages directly?

O. Jones
  • 233
  • 3
  • 6

2 Answers2

2

Nothing ready-to-use I know about but you can try this and modify it to send messages by calling API either with CLI or SDK.

There are AWS docs which may come in handy in sense "how it works": one two. Also, the docs have links to the code used to grab logs and send events, perhaps it'll be useful for that part of job.

Putnik
  • 2,095
  • 3
  • 23
  • 40
2

Maybe not exactly what your are looking for, but check this out: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/EC2NewInstanceCWL.html

arod
  • 542
  • 6
  • 19