~/talk

Tracking user activity logs using Loggastic

slides:none on file

Library that logs user and system activity to Elasticsearch from Symfony apps, integrated with API Platform and using Doctrine listeners + Symfony Messenger to make logging asynchronous. It creates two indexes per entity (current data tracker and activity_log), uses serialization groups and a Loggable attribute to choose tracked fields, supports custom actions, LoggableChildInterface and LogIdentifierExtractor for readable identifiers, and provides API and Twig readers. Commands include composer require locastic/loggastic and bin/console locastic:activity-logs:create-loggable-indexes. On one project it handles 1.5 million activity logs with API responses under 200 ms.

AI-written summary · about

  1. 0:00Intro
  2. 4:05Activity log
  3. 5:02Loggable behavior
  4. 7:36Loggastic
  5. 8:36Flow
  6. 9:16Indexes
  7. 10:19Installation
  8. 10:38Entity loggable
  9. 12:01Create elastic indexes
  10. 12:56populate current data trackers
  11. 14:23edit activity log
  12. 15:27delete activity log
  13. 15:48display activity logs in API platform
  14. 18:25display activity logs in Twig
  15. 20:02implementation summary
  16. 20:28configuration reference
  17. 22:03customize log to data
  18. 25:38changing the default loga listener
  19. 27:07customactionname
  20. 28:42optimize
  21. 30:49pros cons
  22. 32:03real projects
  23. 32:45future plans
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.