O'Reilly logo

MongoDB Data Modeling by Wilson da Rocha França

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required