logagent-js icon indicating copy to clipboard operation
logagent-js copied to clipboard

Amazon S3 input

Open megastef opened this issue 8 years ago • 6 comments
trafficstars

Logagent should have a plugin

  1. to read S3 data as soon new files are created
  2. to import historical data

megastef avatar Sep 27 '17 12:09 megastef

  • For initial dump Logagent probably needs to ls a bucket and read all files
  • For new data Logagent probably has to subscribe to SNS

prog8 avatar Sep 27 '17 12:09 prog8

... or simply check periodically?

otisg avatar Sep 27 '17 12:09 otisg

I think a periodical check is no-go. A bucket can have thousands, tens thousands or hundreds of thousands of objects and ls will not be fast enough.

prog8 avatar Sep 27 '17 12:09 prog8

Perhaps we just need an example configuration and documentation to combine s3cmd with other Logagent plugins:

megastef avatar Sep 27 '17 13:09 megastef

Documentation links for plugins: https://sematext.com/docs/logagent/#plugins

megastef avatar Oct 04 '17 13:10 megastef

Helpful S3 download module: https://www.npmjs.com/package/s3-download-stream

megastef avatar Apr 16 '18 15:04 megastef