Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

There is an option available that allows collecting usage statistics in logslog files. To enable logging of requests, you need to perform the steps described in this guide.

1.

...

At the moment all the requests go to the CGI component (ssrv.cgi) and then transferred to AppServer. In order to enable the collecting of statistics in a log file, you need to configure the Configure the direct connection between the product that you integrated into you your web app and Application Server (AppServer) to enable the collecting of statistics in a log fileVisit the Setting up Direct Connection direct connection with AppServer guide to enable the direct connection.

2.

...

Right after you configured the direct connection, all the requests will be processed directly by AppServer. Then you will be able to enable logging of requests by AppServer. You need to change the default values of SaveRequestStatistic and  RequestStatisticFilePath parameters in the AppServerX.xml file that are responsible for logging of statistics.

...

Open the AppServerX.xml configuration file for editing. Before making any changes to the AppServerX.xml file, it is recommended to stop AppServer.

3. Change the default value of AppServer parameters#EnableRequestStatistic from false to true to enable saving requests statistics

...

2.1.  Turn On SaveRequestStatistic

Change the default value of SaveRequestStatistic from OFF to ON.

Code Block
languagexml
themeEmacs
<SaveRequestStatistic>ON<<EnableRequestStatistic>true</SaveRequestStatistic>EnableRequestStatistic>

2.2. Define Path of Statistics Log

Define a 4. In the RequestStatisticFilePath tag, specify a path to a log file where AppServer will record the information about requests processed by AppServerthat it processes.

Code Block
languagexml
themeEmacs
<RequestStatisticFilePath>Logs/RequestStatistic.log</RequestStatisticFilePath>
Note

Make sure that a directory and a new file for statistics logs has a proper permissions set that allows not only reading the file but also writing to it.

3. Restart AppServer

5. Keep RequestStatisticDataType value as a File to collect the usage statistics in the log files.

6. Start If there are any changes made in the AppServerX.xml file, you are required to restart AppServer to apply your changes.