(This post is applicable only for deployments that use remote SQL Server logging.)
Forefront TMG 2010 SP1 changes the Forefront TMG log schema. Specifically, the field SoftBlockAction was added to TMG Web Proxy logging schema.
1. Upgrade all Forefront TMG servers that write to the table that is to be upgraded.
2. Create a new log table with the new schema. Since only the Web Proxy log schema was changed in Forefront TMG 2010 SP1, only a Web Proxy logging table needs to be created – there’s no need to create a new Firewall logging table. To create the new table, follow the same procedure as described in Forefront TMG 2010 documentation for creating the logging table except that the table creation script file W3PROXY.SQL must be taken from the Forefront TMG installation directory of one of the Forefront TMG servers that were already upgraded to Forefront TMG 2010 SP1. Note: it is possible to create a new table in the existing database, in which case the table name in the script may need to be changed to be able to create the new table alongside the old table in the same database.
3. Configure all the Forefront TMG servers to log to the new table
4. Make sure that all Forefront TMG servers are using the latest configuration to ensure that all are logging to the new table. The configuration status can be verified through the Configuration tab in the Monitoring node in the Forefront TMG Management console.
5. Retire the old (Forefront TMG 2010 RTM version schema) table. This may involve moving the data to the new table, backing up the table or simply deleting it. Note that once Forefront TMG is configured to use the new table it’s no longer aware of the Forefront TMG 2010 RTM version table. Thus, unless the content of the retired table is moved into the new table, the Forefront TMG Management console’s Log Viewer cannot be used to query logs from before the move to the new table.
6. If the new table has a name different than the original table, it may be desirable to rename it back to the old table’s name, e.g. if there are log analysis tools that rely on the table’s name.
1. Create a new log table with the Forefront TMG 2010 RTM schema. Since only the Web Proxy log schema was changed in Forefront TMG 2010 SP1, only a Web Proxy logging table needs to be created – no need to create a new Firewall logging table. To create the new table, follow the same procedure as described in Forefront TMG 2010 documentation for creating the logging table, except that the creation script file must be taken from <Forefront TMG 2010 DVD Root>\Fpc\Program Files\Microsoft ISA server\W3PROXY.SQL. This file cannot be taken from the Forefront TMG installation directory because at this point that file contains the script for creating the table with the Forefront TMG 2010 SP1 logging schema. Note: it is possible to create a new table in the existing database, in which case the table name in the script may need to be changed to be able to create the new table alongside the old table in the same database.
2. Configure the Forefront TMG servers to log to the new table (with the Forefront TMG 2010 RTM version schema)
3. Make sure that all Forefront TMG servers are using the latest configuration to ensure that all are logging to the new table. The configuration status can be verified through the Configuration tab in the Monitoring node in the Forefront TMG Management Console.
4. Uninstall Forefront TMG 2010 SP1 from the Forefront TMG servers that are now writing to the new (Forefront TMG 2010 RTM version schema) table
5. Retire the old (Forefront TMG 2010 SP1 schema) table. This may involve moving the data to the new table, backing up the table or simply deleting it. Note that once Forefront TMG is configured to use the new table it’s no longer aware to the Forefront TMG 2010 SP1 table. Thus, unless the content of the retired table is moved into the new table, the Forefront TMG Management Console’s Log Viewer cannot be used to query logs from before the move to the new table.
6. It may be desirable to rename the new table to the old table’s name, e.g. if there are log analysis tools that rely on the table’s name