EPiWiki.se  - EPiServer notes shared with others
 

Configure the Log Service for remote server

[Edit]
To connect to the Analyzers remote do the folowing

EPiService.LogService.exe.config


The configuration for the LogService is stored in the LogService folder
e.g. %PROGRAMFILES%\EPiServer\LogService\

Add same "via" tag to all analyzer viewsEg.

<view type="EPiServer.Log.Analyzer.TimeSpanAnalyzerView, EPiServer.Log.Analyzers"
      protocol="TCP/SOAP"
      endpoint="soap.tcp://localhost/TimeSpanAnalyzerView"
      via="soap.tcp://epiwiki.se/TimeSpanAnalyzerView"/>

Programmatically


Your views is handled in the same way as the samples analyzer is

To connect the proxy to the new host the sample code has to be changed and add
Eg. (the file edit/TimeSpanView.ascx.cs)

  TimeSpanAnalyzerView client =
new TimeSpanAnalyzerView();

  Uri address = new Uri("soap.tcp://localhost/TimeSpanAnalyzerView");
  Uri via = new Uri("soap.tcp://" + EPiServer.Global.EPConfig["LogServiceHost"] + "/TimeSpanAnalyzerView");
  client.Destination = new EndpointReference(address, via);

and (the files LogServiceLastUsers.ascx, LogServicePageHits.ascx.cs and
LogServicePublishedPages in the folder templates/units)

  RealTimeAnalyzerView client = new RealTimeAnalyzerView();
  
  Uri address = new Uri("soap.tcp://localhost/RealTimeAnalyzerView");
  Uri via = new Uri("soap.tcp://" + EPiServer.Global.EPConfig["LogServiceHost"] + "/RealTimeAnalyzerView");
            
  client.Destination = new EndpointReference(address, via);
Version author:
Anonymous

EPiServer version

All