opentelemetry-collector-contrib icon indicating copy to clipboard operation
opentelemetry-collector-contrib copied to clipboard

[receiver/mongodbatlasreceiver] Add Log collection

Open armstrmi opened this issue 3 years ago • 1 comments
trafficstars

Description: <Describe what has changed.>

  • Added functionality for a logs receiver to collect logs from project clusters specified by the user.
  • Along with cluster logs, audit logs from those clusters are also scraped.
  • New Log and Audit log structures added in to the internal package logs.go
  • Log conversion from new custom log structures into plog.Logs

Link to tracking Issue: <Issue number if applicable> https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/12347

Testing:

  • Tested changes against a live system and was able to successfully retrieve mongo and audit logs
  • New Unit tests added to config.go_test, receiver_test.go,
  • New Test Files added mongodb_event_to_logdata_test.go, logs_test.go

Documentation:

  • Added changes to the local README to correlate with the updated configuration.

armstrmi avatar Aug 01 '22 15:08 armstrmi

@armstrmi once you fix the failures, I think it's looking pretty good for an actual PR

StefanKurek avatar Aug 03 '22 13:08 StefanKurek

@djaglowski Thanks for the informative feedback

armstrmi avatar Aug 15 '22 15:08 armstrmi