Click here to close now.

SYS-CON MEDIA Authors: Eva Belanyiova, tru welu, Blue Box Blog, Kevin Jackson, Peter Silva

Related Topics: Microsoft Cloud

Microsoft Cloud: Blog Post

Set Up Logging on Google Compute Engine in Less Than 5 Minutes

The need for comprehensive log data management for these platforms has grown

This blog was written by Logentries intern Russell Johnson, a student at MIT studying mechanical engineering and business.

As developers continue to rely more and more on cloud computing services like Amazon Web Services, Google Compute Engine, and Microsoft Azure, the need for comprehensive log data management for these platforms has grown as well  This post gives a quick overview of setting up Logentries on Google Compute Engine.

Although Google offers its own logging service, users seeking additional capabilities such as comprehensive tagging, real-time alerts, and shareable dashboards and graphs might want to forward their logs to a SaaS logging service like Logentries. In addition the Google logging capabilities can only be used on applications deployed through the Google AppEngine, so if you are running workloads on Google Compute Engine you will need to look elsewhere. The screenshot below shows the Google logging service connected to an elementary ‘Hello World' program deployed through the Google AppEngine. As you can see in these logs, Google's service provides some basic tags (Debug/Info/Warning/Error/Critical) and features (autofilled searching) that help provide valuable insight into the basic operational metrics of your application but for users who need to dig deeper into their logs by creating more personalized tags and more sophisticated sorting techniques, the service might seem limited. That's where Logentries comes in.

Google Compute Engine

Here's how you can send Logs to a logging service if you are using Google Compute Engine.

To get started with Google Compute, create a new project in your Google Developer's Console.  Once you've initiated and enabled billing for your project. You can easily clicking the blue ‘Create Instance' button on your project homepage.

Create a project

The available instances that can be created in the Google Compute engine are primarily Linux operating systems but they do offer a paid Windows option. For this post, we will examine a Linux instance but installing Logentries on a Google Windows instance is as easy as running the Logentries Windows Agent. Besides operating systems, Google allows you to choose other specs for your instance before you create it (i.e. amount of memory, number of virtual CPUs, and operating system). Once you've specified those details and created  your instance, it should appear under the Compute > Compute Engine tab in your project's sidebar. Once you've located the project you can SSH into the instance by clicking the SSH button under the ‘Connect' column.

SSH

To connect from your computer's local terminal (in this case I used a Mac running OSX), you'll need to install the Google SDK cloud computing tools, the instructions for which are linked to the window once you click the SSH button. Once you've run the specified SDK download commands in your local terminal, Google will prompt you to enter ‘gcloud auth login' which initiates the process of connecting your local terminal to your virtual machine. Once you've completed this process, which is as simple as following a link in your browser and copying down an identification code, you should be logged into your virtual machine.

Next log into your Logentries account and select ‘add a log' and following the Linux installation instructions.

Install Logentries in minutes

The simplest setup option is to use the Logentries Linux agent to forward logs to your Logentries account. The Linux agent installation is as easy as a one line command in the terminal. The agent will prompt you to input your Logentries account information and after a short installation should start sending logs to your account immediately (its always a good idea to refresh your Logentries Logs page). The installation should look something like this in your terminal:

Once you've checked that the host, and logs are up and running on your Logentries page, the set up is complete. You can explore other tutorials on the Logentries site to help you set up useful tags and alerts to make sure you get the most utility out of your logs.

Check out Logentries free 30-day trial and happy Google logging!

More Stories By Trevor Parsons

Trevor Parsons is Chief Scientist and Co-founder of Logentries. Trevor has over 10 years experience in enterprise software and, in particular, has specialized in developing enterprise monitoring and performance tools for distributed systems. He is also a research fellow at the Performance Engineering Lab Research Group and was formerly a Scientist at the IBM Center for Advanced Studies. Trevor holds a PhD from University College Dublin, Ireland.

Latest Stories
The 5th International DevOps Summit, co-located with 17th International Cloud Expo – being held November 3-5, 2015, at the Santa Clara Convention Center in Santa Clara, CA – announces that its Call for Papers is open. Born out of proven success in agile development, cloud computing, and process automation, DevOps is a macro trend you cannot afford to miss. From showcase success stories from early adopters and web-scale businesses, DevOps is expanding to organizations of all sizes, including the...
"We are the top stocking distributor for HP renew products in North America. We can only sell to U.S. authorized partners and resellers for HP," explained Miguel Diazdelcastillo Jr., Sales Executive at Creative Business Solutions, in this SYS-CON.tv interview at Cloud Expo, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
Growth hacking is common for startups to make unheard-of progress in building their business. Career Hacks can help Geek Girls and those who support them (yes, that's you too, Dad!) to excel in this typically male-dominated world. Get ready to learn the facts: Is there a bias against women in the tech / developer communities? Why are women 50% of the workforce, but hold only 24% of the STEM or IT positions? Some beginnings of what to do about it!
SYS-CON Events announced today that BMC will exhibit at SYS-CON's 16th International Cloud Expo®, which will take place on June 9-11, 2015, at the Javits Center in New York City, NY. BMC delivers software solutions that help IT transform digital enterprises for the ultimate competitive business advantage. BMC has worked with thousands of leading companies to create and deliver powerful IT management services. From mainframe to cloud to mobile, BMC pairs high-speed digital innovation with robust...
There is little doubt that Big Data solutions will have an increasing role in the Enterprise IT mainstream over time. 8th International Big Data Expo, co-located with 17th International Cloud Expo - to be held November 3-5, 2015, at the Santa Clara Convention Center in Santa Clara, CA - has announced its Call for Papers is open. As advanced data storage, access and analytics technologies aimed at handling high-volume and/or fast moving data all move center stage, aided by the cloud computing bo...
SYS-CON Events announced today that the "First Containers & Microservices Conference" will take place June 9-11, 2015, at the Javits Center in New York City. The “Second Containers & Microservices Conference” will take place November 3-5, 2015, at Santa Clara Convention Center, Santa Clara, CA. Containers and microservices have become topics of intense interest throughout the cloud developer and enterprise IT communities.
“Will Jaya is a direct source for server integration and storage solutions. If you are looking for any specific configurations for a project we can help you configure based on your needs and requirements," explained Netty Goya, CEO of Will Jaya, in this SYS-CON.tv interview at 15th Cloud Expo, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
"SendGrid sends about 15 billion emails a month and process all the events associated with that, about a trillion events a year," explained Aaron Beach, Senior Data Scientist at SendGrid, in this SYS-CON.tv interview at Cloud Expo, held Nov 4-6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
SYS-CON Events announced today that SUSE, a pioneer in open source software, will exhibit at SYS-CON's DevOps Summit 2015 New York, which will take place June 9-11, 2015, at the Javits Center in New York City, NY. SUSE provides reliable, interoperable Linux, cloud infrastructure and storage solutions that give enterprises greater control and flexibility. More than 20 years of engineering excellence, exceptional service and an unrivaled partner ecosystem power the products and support that help ...
“DevOps is really about the business. The business is under pressure today, competitively in the marketplace to respond to the expectations of the customer. The business is driving IT and the problem is that IT isn't responding fast enough," explained Mark Levy, Senior Product Marketing Manager at Serena Software, in this SYS-CON.tv interview at DevOps Summit, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
ThingsExpo New York is offering a limited time FREE "Expo Plus" registration option in New York. On site registration price of $1,95 will be set to 'free' for delegates who register during special offer. To take advantage of this opportunity, attendees can use the coupon code, and secure their registration to attend all keynotes, ThingsExpo sessions, expo floor, and SYS-CON.tv power panels. Special FREE registration givess access to all DevOps, Containers and Microservices sessions as well. Regi...
"ElasticBox is an enterprise company that makes it very easy for developers and IT ops to collaborate to develop, build and deploy applications on any cloud - private, public or hybrid," stated Monish Sharma, VP of Customer Success at ElasticBox, in this SYS-CON.tv interview at DevOps Summit, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
The only place to be Nov 3-5 is Cloud Expo | @ThingsExpo | DevOps Summit 2015 West at the Santa Clara Convention Center in Santa Clara, CA. Join us there as delegates from all over the world come to listen to and engage with speakers & sponsors from the leading Cloud Computing, IoT, Big Data and DevOps companies. Cloud Expo & @ThingsExpo are the leading events covering the booming market of Cloud Computing, IoT & Big Data for the enterprise. Speakers from all over the world will be hand-picked...
The 17th International Cloud Expo has announced that its Call for Papers is open. 17th International Cloud Expo, to be held November 3-5, 2015, at the Santa Clara Convention Center in Santa Clara, CA, brings together Cloud Computing, APM, APIs, Microservices, Security, Big Data, Internet of Things, DevOps and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding bu...
The 4th International Internet of @ThingsExpo, co-located with the 17th International Cloud Expo - to be held November 3-5, 2015, at the Santa Clara Convention Center in Santa Clara, CA - announces that its Call for Papers is open. The Internet of Things (IoT) is the biggest idea since the creation of the Worldwide Web more than 20 years ago.