fluent-plugins-nursery / fluent-plugin-cloudwatch-logs

CloudWatch Logs Plugin for Fluentd
MIT License
201 stars 141 forks source link

can't get the logs from machine to fleutd server and send them to cloudwatch #248

Closed hammoumi94 closed 1 year ago

hammoumi94 commented 2 years ago

Problem

I manage to get logs from machine by configuring rsyslog and tg-agent. Here is the config i made :

<source>
 @type syslog
  port 5140
  bind 0.0.0.0
  tag syslog
  <parse>
   message_format auto
  </parse>
</source>

<match **>
  @type cloudwatch_logs
  aws_key_id  ***************
  aws_sec_key  ***************
  log_group_name staging-fluentd-apps-logs
  log_stream_name apps-logs
  auto_create_stream true
  region us-east-1
</match>

As for the rsyslog, i made this : *.* @173.17.1.112:5140

What's is the correct config that i need to made ? PS: i'm using a debian machines.