vADC Docs

Virtual Traffic Manager with Loggly

by fmemon on ‎02-13-2013 12:00 AM - edited on ‎09-30-2015 12:23 PM by aannavarapu (1,958 Views)

Loggly is a cloud-based log management service.  The idea with Loggly is that you direct all your applications, hardware, software, etc. to send their logs to Loggly.  Once all the logs are in the Loggly cloud you can :

  • Root cause and solve problems by performing powerful and flexible searches across all your devices and applications
  • Set up alerts on log events
  • Measure application performance
  • Create custom graphs and analytics to better understand user behavior and experience

 

Having your Virtual Traffic Manager (vTM) logs alongside your application logs will provide valuable information to help further analyze and debug your applications.  You can export both the vTM event log as well as the request logs for each individual Virtual Server to Loggly.

 

vTM Event Log

The vTM event log contains both error logs and informational messages.  To export the vTM Event Log to Loggly we will first create an Input into Loggly.  In the Loggly web interface navigate to Incoming Data -> Inputs and click on "+ Add Input".  The key field is the Service Type which must be set to Syslog UDP.

loggly1.jpg

After creating the input you'll be given a destination to send the logs to.  The next step is to tell the vTM to send logs to this destination.

loggly3.jpg

In the vTM web interface navigate to System > Alerting and select Syslog under the drop down menu for All Events. Click Update to save the changes.

loggly 4.jpg

The final step is to click on Syslog and update the sysloghost to the Loggly destination.

loggly5.jpg

Virtual Server Request Logs

Connections to a virtual server can be recorded in request logs. These logs can help track the usage of the virtual server, and can record many different pieces of information about each connection.  To export virtual server request logs to Loggly first navigate to Services > Virtual Servers > (your virtual server) > Request Logging. First set log!enabled to Yes, its not on by default. Scroll down and set syslog!enabled to Yes and set the syslog!endpoint to the same destination as with the vTM Event Logs.  Click Update to save the changes.

loggly6.jpg

Alternatively you can create a new input in Loggly for request logs if you don't want them to get mixed up with the Event Logs.

 

Making sure it works

An easy way to make sure it works is to modify the configuration by creating and deleting a virtual for example.  This will generate an event in the vTM Event Log.  In Loggly you should see the light turn green for this input.

loggly7.jpg

The Virtual Traffic Manager is designed to be flexible, being the only software application delivery controller that can be seamlessly deployed in private, public, and hybrid clouds.  And now by exporting your vTM logs you can take full advantage of the powerful analysis tools available within Loggly.

Contributors