Book Image

OpenShift Cookbook

By : Shekhar Gulati
Book Image

OpenShift Cookbook

By: Shekhar Gulati

Overview of this book

Table of Contents (19 chapters)
OpenShift Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Running OpenShift on a Virtual Machine
Index

Viewing application logs


Logs are important data generated by your application that can help you understand user heuristics, monitor application performance, and debug problems. They are the first place you look when something goes wrong in your application. OpenShift uses a service called logshifter, which collects logs from all the different pieces of your application and makes them accessible at a single location. These logs can then be fed to your favorite log management solution, such as Splunk, to gain more useful insights. In this recipe, you will learn how easily you can view all the logs of your application using a single command. This recipe covers logging in a cartridge-agnostic manner. The language-specific aspects of logging will be covered later in this chapter.

Getting ready

To complete this recipe, you will need rhc installed on your machine. Also, we will make use of the OpenShift application created in the Creating an OpenShift application using the rhc command-line client...