Log messages in files are a pain: they are hard to get hold of, difficult to search, and different sources are tedious to combine. This talk shows you ways to use logs as a real time source of information to react on problems – even before you users file a ticket!
Each node in every layer of your application has its own log file. In a production environment you need an admin to grant you access to the log files. Whenever you search for the causes of an error you will need to combine multiple log files to get the information you need.
This talk puts the spot light on three tools that help handling log messages. All of them provide access controls for your logs and can alert you when there are problem. But each of them has a different focus. These tools are Errbit, logFaces and graylog2.
Errbit will receive all error messages from your application, from the back end and the frontend. It will group them for you so you know how many times the same error occurred. With every occurrence of an error it will store all context information so that you can easily browse it. It can also store release information to show you when this error occurred for the first time and when it was fixed.
logFaces receives the full log stream from your application and makes it searchable. You can prepare search filters that help you with recurring tasks. From a given log message you can dig into your logs to find more about the same user, session or class. You can even see a live log stream of your application.
grayLog2 gives you a highly scalable architecture and will process all your log files. It will index them using elasticsearch and search it for you using simple and complex queries. You can put the results as performance indicators or charts on dashboards that show you the current health status of your system. graylog2 has been completely redesigned for release 0.20; this talk will show the new features.
This talk will help you to choose the right tool for the job. It will enable you to find the information without the hassle. These tools are the key to find and solve problems before your users complain and file a ticket.
Alexander Schwartz is Principal IT Consultant at msg systems. He’s been in Web development for more than 15 years and in Java development for more than 10 years. He has been a developer, scrum master, team leader, architect, and project manager in various projects. He enjoys productive working environments, agile projects and automated tests.