Analyzing Exchange Transaction Log Generation Statistics script

This post is also available in: Polish

Exchange Team Blog released great script to get transaction logs statistics.

With this script you can easily plan deploying your Exchange Servers.
As a output of this script you will get information about transaction logs which where generated during specified time.

Now you can determine how many transaction logs are generated on an hourly basis. This helps figure out how much bandwidth will be required when replicating database copies between sites, and what the effects will be of adding additional database copies to the solution. If designing an Exchange solution using the Exchange Server Role Requirements Calculator, the percent of logs generated per hour is an optional input field.

The script is called GetTransactionLogStats.ps1.
It has two modes:

  • Gather mode is designed to be run on an hourly basis, on the top of the hour. When run, it will take a single set of snapshots of the current log generation number for all configured databases. These snapshots will be sent, along with the time the snapshots were taken, to an output file, LogStats.csv. Each subsequent time the script is run in Gather mode, another set of snapshots will be appended to the file.
  • Analyze mode is used to process the snapshots that were taken in Gather mode, and should be run after a sufficient amount of snapshots have been collected (at least 2 weeks of data is recommended). When run, it compares the log generation number in each snapshot to the previous snapshot to determine how many logs were created during that period.

The script takes a simple input file, TargetServers.txt, where each line in the file specifies the server, or server and databases to process. If you want to get statistics for all databases on a server, only the server name is necessary. If you want to only get a subset of databases on a server (for instance if you wanted to omit secondary copies on an Exchange 2007 and 2010 server), then you can specify the server name, followed by each database you want to process.


You can download script here:


More information:

Exchange Team Blog – Analyzing Exchange Transaction Log Generation Statistics

Print Friendly
Tagged , , , . Bookmark the permalink.

4 Responses to Analyzing Exchange Transaction Log Generation Statistics script

  1. Gaurav says:

    where is the script ?

  2. Gaurav says:

    thanks for the link, i am sorry but from the post/link it is not very clear on the parameters/usage of the script.

    • Remigiusz Szatkowski says:

      This is not my script, this is just information that Exchange Team Blog create this script and what can it do.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>