scalyr / scalyr-fluentd

The fluentd plugin for inserting log messages and metrics in Scalyr.
Apache License 2.0
6 stars 5 forks source link

Seprate logs based on tags #10

Open viveklanjekar opened 6 years ago

viveklanjekar commented 6 years ago

Hi , i have configured syslog as source to collect logs from multiple containers and then use scalyr output to send to scalyr.

Now my problem is all logs when send to scalyr , they become part of one log file and then i have to use container tag to filter out logs for that particular container. what i need is somehow i separate logs for each container in scalyr. so when data is sent to scalyr, i have different logs for diffrent containers

scalp42 commented 5 years ago

Same issue here @viveklanjekar did you ever figure it out?

I'm going to explore writing a specific parser and have Docker send the right tags.

weilliu commented 5 years ago

The issue should be fixed with the latest version (0.8.8). Running fluent-gem update fluent-plugin-scalyr (or equivalent command for td-agent) should update the Scalyr fluentd plugin to version 0.8.8. This can be confirmed in the output of fluentd which will show a line like:

2019-07-19 07:12:09 +0000 [info]: gem 'fluent-plugin-scalyr' version '0.8.8'