Home > Microsoft Exchange Tips > Exchange Server Administration Tips > Extracting Exchange ActiveSync data from IIS log files
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

EXCHANGE SERVER ADMINISTRATION TIPS

Extracting Exchange ActiveSync data from IIS log files


Brien Posey
10.16.2008
Rating: --- (out of 5)


Exchange Server tips, tutorials and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Unless a company has an unlimited data plan for all Exchange Server mobile users, the volume of mobile messaging activity can directly affect its bottom line. Despite Exchange Server's lack of native reporting capabilities, it's possible to extract and analyze Exchange ActiveSync data. In this tip, Microsoft Exchange expert Brien Posey explains how to extract ActiveSync data from Internet Information Services (IIS) log files using a simple Exchange Management Shell (EMS) command.

While the Exchange Management Console (EMC) does not have a report generator to provide data on each user's wireless activity, there is an easy way to create your own report. The key to doing so lies in the fact that mobile messaging uses Exchange ActiveSync, which is facilitated by the client access server.

A client access server is an IIS server that hosts Exchange-related Web pages. This is important because it means that, like any other IIS server, a client access server creates a daily log of activity in the \Windows\system32\Logfiles\W3SVC1 folder. To use this information, you must separate ActiveSync-related log entries from the Outlook Web Access (OWA)-related entries (assuming that the client access server is being used for both purposes). You must then parse the log file entries so the log file data becomes meaningful.

Fortunately, we get some help from the folks in Redmond on this one. You can actually use the Exchange Management Shell to extract and parse the ActiveSync data from the logs. The only catch is that IIS creates a new log file each day, so you need to know for which date you want to examine Exchange ActiveSync data. You must also create a folder in which you can deposit the extracted data.

Suppose, for instance, that I want to analyze ActiveSync data for Sept. 23, 2008, and I have created a folder named C:\Reports to use as a repository for the extracted data. To extract Exchange ActiveSync data from the Sep...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Mobile Devices
Top 5 Exchange ActiveSync tips
Windows Mobile 6.5 touts Internet Explorer, OWA improvements
Windows Mobile 6.5 touts ActiveSync and Outlook Mobile improvements
What are your options for sending text messages from Outlook 2007?
Using Mobile Device Manager 2008 server roles in Exchange 2007
Understanding Exchange Server 2007 SP1 mobile security settings
Synchronized Exchange mobile device showing deleted appointment
Which ActiveSync authentication method is best for your mobile device?
Disable ActiveSync in bulk with Exchange Management Shell commands
Configuring ActiveSync authentication in Exchange Server 2007

Microsoft Exchange Server Monitoring and Logging
Analyzing Exchange ActiveSync data from .CSV report files
Top Exchange Server performance monitoring and troubleshooting tools
How effective is tracking the IP address of an email hacker?
Error message: 'ID no: 8004100e Exchange System Manager'
How to generate HTML reports with the Exchange Management Shell (EMS)
IMAP list command only returns a list of Exchange public folders
A network connection problem or an offline server prevented delivery of the message
Monitor and search Exchange mailboxes for music and video files
How much bandwidth is required to send email in Exchange 2003?
Monitoring Outlook Web Access usage via IIS log files

Exchange Server Administration Tips
Remove Exchange 2003 objects from AD to install Exchange 2010
Don'ts for optimal Exchange 2007 mailbox server efficiency
Is your Exchange 2007 hub transport server healthy?
Avoid Outlook 2007 performance issues during repairs
Developing an Exchange 2007 server role DR plan
How DSAccess service improves Exchange Server 2007 reliability
An introduction to the Exchange Remote Connectivity Analyzer tool
Monitor Exchange 2007 with disk- and RPC-related counters
DPM 2007 replica inconsistencies in Exchange databases
Track Exchange 2007 mailbox server health using database counters

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


tember 28, 2008 log file and put it into the C:\Reports folder, I would enter the following command:

Export-ActiveSyncLog –Filename: 'C:\Windows\System32\Logfiles\W3SVC1\080923.log' –UseGMT:$True –OutputPath 'C:\Reports\'

Exchange Management Shell commands are made up of noun-verb combinations. In this case, we are using Export as the verb and ActiveSyncLog as the noun to tell the Exchange Management Shell what to export.

We must supply three parameters in conjunction with the Export-ActiveSyncLog command. First is the –Filename: parameter. Notice that I have enclosed the path and the filename with single quotes.

You should also note that the filename contains 080923, which corresponds to the year, month and day. This is the standard log file naming convention that IIS uses.

The second parameter is –UseGMT:$True, which directs Exchange to use Greenwich Mean Time (GMT) or Zulu time within the logs. This is useful if you are collecting log file data from Exchange servers that are spread across multiple time zones. You can set this parameter to False if you want to use the server's local time instead.

The third parameter, –OutputPath, lets you specify the destination path for the extracted data.

One thing to note about the destination path: Exchange Server 2007 always uses the same names for reports it generates -- regardless of what the original name of the IIS log file was. This means that if you want to extract data from multiple log files, you will have to specify a different destination path for each report. Otherwise, the report will be overwritten. You also have the option to rename the report files prior to performing a secondary extraction.

About the author: Brien M. Posey, MCSE, is a five-time recipient of Microsoft's Most Valuable Professional award for his work with Exchange Server, Windows Server, Internet Information Services (IIS), and File Systems and Storage. He has served as CIO for a nationwide chain of hospitals and was once responsible for the Department of Information Management at Fort Knox. As a freelance technical writer, Brien has written for Microsoft, TechTarget, CNET, ZDNet, MSD2D, Relevant Technologies and other technology companies. You can visit Brien's personal website at www.brienposey.com.

Do you have comments on this tip? Let us know.

Please let others know how useful this tip was via the rating scale below. Do you know a helpful Exchange Server, Microsoft Outlook or SharePoint tip, timesaver or workaround? Email the editors to talk about writing for SearchExchange.com.

Rate this Tip
To rate tips, you must be a member of SearchExchange.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Email Server Solutions: Exchange 2007, Exchange 2003, Exchange 2000, SharePoint
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts