Chapter 8. Logging and Real-time Analytics with MongoDB

Throughout this book, many concepts you already knew were presented to you. You have learned how to use them in conjunction with the techniques and tools that MongoDB offers to us. The goal of this chapter is to apply these techniques in a real-life example.

The real-life example we will develop in this chapter explains how to use MongoDB as a persistent storage for a web server's log data—to be more specific, the data from an Nginx web server. By doing this, we will be able to analyze the traffic data of a web application.

We will start this chapter by analyzing the Nginx log format in order to define the information that will be useful for our experiment. After this, we will define the type ...

Get MongoDB Data Modeling now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.