When Monolog meet ELK

When Monolog meet ELK

talk given during sfPot Paris

418997665c4a3368515ecf9c3d746b95?s=128

Olivier Dolbeau

July 15, 2014
Tweet

Transcript

  1. 3.
  2. 4.

    Handlers • StreamHandler • ErrorLogHandler • SwiftMailerHandler • SyslogUdpHandler •

    FirePHPHandler • FingersCrossedHandler • NullHandler • … more than 36 handlers!
  3. 6.
  4. 8.
  5. 11.

    What can I do with that? • Different handlers for

    different usage ◦ FirePHP for web ◦ Console for cli • Processor per handler • Processor per channel http://symfony.com/doc/current/cookbook/logging/channels_handlers.html
  6. 12.
  7. 13.

    Few things you can do • All my cli logs

    are displayed in console • I use FirePHP for web • publication logs are very important. I want to receive an email if an exception occurred. • I have a processor dedicated to workers. I can directly see which message raise an error. • I have a processor dedicated to web (you saw it) • ...
  8. 14.
  9. 15.
  10. 16.
  11. 17.
  12. 21.
  13. 22.
  14. 23.

    • real time data • distributed • multi-tenancy • document

    oriented • schema free • per operation persistence • real time analytics • high availability • full text search • conflict management • restful api • built on top of apache lucene
  15. 28.
  16. 30.
  17. 32.
  18. 33.
  19. 35.
  20. 36.

    Conclusion • Use Monolog (easy!) • Use ELK • Use

    monolog context • Create dashboards • Enjoy!
  21. 37.