Home > Microsoft Exchange Tips > > Use Exchange 2007 ActiveSync logs to track mobile device activity
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


Use Exchange 2007 ActiveSync logs to track mobile device activity


Brien M. Posey
11.29.2007
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


Microsoft Exchange Server 2007 doesn't offer a tool to specifically track the amount of data that users send and receive from their portable devices. However, it does log all ActiveSync transactions. Learn how you can export Exchange 2007 ActiveSync reports to comma-separated values (CSV) files via the Exchange Management Shell to analyze and determine mobile device activity, and estimate the costs associated with mobile messaging in your organization.


One problem with mobile messaging is that, unless your company has a wireless plan that offers unlimited data transmission, users can accumulate hefty wireless bills. As an Exchange Server administrator, you must track how much data each mobile device user sends and receives to budget for future growth. If you know, on average, how much data each mobile user requires, you can easily estimate the monthly cost of adding users.

Exchange Server 2007 logs all ActiveSync transactions that go through the server; and you can use various data-mining techniques to glean information from these logs. When looking at ActiveSync reports, it's important to understand information contained within them. Reports are created based on the Exchange server's perspective of data, rather than the users' perspective.

A new ActiveSync log is created on a daily basis; therefore, there is no master-log file that contains every transaction that has ever occurred. You need to analyze the data from day to day. As you extract the data, you can plug it into a SQL Server or Microsoft Access database to perform a more detailed analysis over time, rather than evaluating just a single day's data.

Unfortunately, there is no graphical user interface (GUI) mechanism that analyzes ActiveSync logs, so you will have to use the Exchange Management Shell to export the data. To do so, you will need to know the date that the desired data was collected, and the path to which you want to dump the extracted data. For example, suppose that you wanted to extract data that was collected on July 31, 2007, and move it to a folder called C:\Logs. In this situation, you would use the following command:

Export-ActiveSyncLog –FileName: 'C:\Windows\System32\LogFiles\W3SVC1\ex070731.log' –UseGMT:$true –OutputPath 'c: \Logs\'

This file name is based on the date chosen, which is entered in YYMMDD format. Exchange Server will then create six comma-separated values (CSV) files in the target directory. CSV files are text files that are designed to be imported into Microsoft Access or Excel.
More mobile device administration resources:
Crash Course: Exchange ActiveSync tips and tutorials

Tip: The Exchange Server ActiveSync Web Administration Tool

Step-by-Step Guide: How to secure mobile devices in Exchange Server 2007

Learning Guide: Exchange Server mobile device management

The first CSV file that Exchange Server creates is Users.csv. This file logs user activity, and lets an administrator view these logs to pinpoint the heaviest users. The Users.csv file tracks items sent and items received for each user.

Keep in mind that ActiveSync reports are generated based on the server's perspective, so the Items sent column refers to the number of items that the server sent to the specified user; not the number of messages that the user sent. Likewise, the Items received column refers to the number of items that the server received from the user; not the number of messages that the user received.

User-Agents.csv is the second CSV file that Exchange Server 2007 creates. This file logs activity according to device type. The Users-Agents.csv file can be used to determine how many users employ each different type of wireless device, and how much traffic each device generates.

The next three CSV files that Exchange generates are Servers.csv, PolicyCompliance.csv and StatusCodes.csv.

  • The Servers.csv file reports ActiveSync-related activity on a mailbox
    server-by-mailbox server basis.

  • The PolicyCompliance.csv file reports on how well various wireless devices comply with established ActiveSync mailbox policies.

  • The StatusCodes.csv file contains various undocumented codes designed for use by Microsoft technical support staff.

The fourth file, Hourly.csv, compresses wireless activity into hour-by-hour chunks, and lets you identify when mobile users send and receive the most data. Some wireless providers offer different rates for peak hours vs. off-peak hours, so this hour-by-hour analysis can help you better predict charges that users incur.

About the author: Brien M. Posey, MCSE, is a Microsoft Most Valuable Professional for his work with Exchange Server, and has previously received Microsoft's MVP award for Windows Server and Internet Information Server (IIS). Brien 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 Web site 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.




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 2007
Is your Exchange 2007 hub transport server healthy?
Top 5 Exchange ActiveSync tips
Two useful tools for documenting an Exchange Server installation
Controlling spam in Exchange 2007 at the edge transport server level
Restore Exchange storage groups with DPM 2007
How a hosted Exchange service can help you
Email issues after configuring hosted Exchange server on laptop
Migrating to Exchange 2007 with correct permissions
Virtualize Exchange Server 2007 -- without losing your job
How DSAccess service improves Exchange Server 2007 reliability
Microsoft Exchange Server 2007 Research

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

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