~/talk

Logging in Spring Boot with the Elastic Stack

Talkat Spring I/O Bridge 2020 · on Friday, 2020-05-15· [devops-and-delivery]
slides:none on file

Shows how to emit ECS JSON logs from Logback/Log4j2 so Filebeat can ship directly to Filebeat → Elasticsearch without Logstash, keeping stack traces as single JSON lines and avoiding Grok. Demo uses a Spring Boot Security app that generates ~130 login events (46 after filtering), adds MDC fields like user.name, url and IP, and visualizes counts in Kibana Lens. Adds the Java APM agent for correlated traces and mentions automated index lifecycle/30‑day retention. Slides and demo code on the GitHub repo.

AI-written summary · about

  1. 0:00Intro
  2. 0:49Logs
  3. 1:20SSH
  4. 3:09Why Elastic Search
  5. 4:25Log Stash
  6. 5:34Regular Expressions
  7. 6:49Elastic Common Scheme
  8. 8:52Logging Java
  9. 10:23Demo
  10. 12:33Logging Errors
  11. 13:28Cabana
  12. 13:53Elastic Stack Configuration
  13. 15:48Viewing Login Events
  14. 17:53Logs View
  15. 21:43Denial of Service
  16. 22:03Event Visualization
  17. 22:48Length Visualization
  18. 23:08Filter Fields
  19. 24:28Visualizations
  20. 24:48Document Structure
  21. 25:43Domain Specific
  22. 26:13Tracing Agent
  23. 28:43Lifecycle Management
  24. 29:23Summary
  25. 30:13Wrap up
  26. 31:03Questions
  27. 31:53JSON Logs
  28. 32:33New Line Descriptor
  29. 33:03How to cut off properties
  30. 34:13Is it easy to jump from Log4J to BE
~/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.