Maintain topology-aware message logs (Archiver sample)

Lync 2013

Learn about the Microsoft Lync Server 2013 SDK Archiver sample application.

Last modified: August 16, 2013

Applies to: Lync 2013 | Lync Server 2013

Note Note

By default, the Archiver application is copied to the %progfile%\Microsoft Lync Server 2013\SDK\Samples\Archiver folder. Archiver and related code samples can also be downloaded from the MSDN Code Gallery.

The Archiver application that is distributed with the Lync Server 2013 SDK shows how to use a managed SIP application to build a topology-aware SIP application that uses message stamping for multi-homed application communications. Each Archiver instance logs messages that are not yet stored by any instance on another server. The logged requests and responses are stamped to notify downstream Archiver instances that additional logging is not necessary.

If necessary, copy the %progfile%\Microsoft Lync Server 2013\SDK\Samples\Archiver folder to a Microsoft Lync Server 2013 computer on which the application runs.

To build the application assembly

  1. Open a command console in a user account that has elevated permission.

  2. Open the %progfile%\Microsoft Lync Server 2013\SDK\Samples folder.

  3. Use the following command to build the application.

    Compile Archiver

To run the application

  1. Log on to the two Lync Server 2013 computers by using an RTC Server Applications local security group account.

  2. Register the application by running the following commands in a Lync Server Management Shell window.

    Note Note

    <lync.Server.Fdqn> is the placeholder for the fully qualified domain name for the test server. You may have to change the priority value so that it is larger than the UserServices application value.

    new-csServerApplication -uri "" -identity "service:registrar:<lync.Server.Fdqn>/Archiver" -critical $false -priority 6 -enabled $true

  3. In a command console, run Archiver.exe to start the application.