You are here: Helix Administrator > Logging and Monitoring > Advanced Logging > Template Creation

Template Creation

The following procedure explains how to create a new logging template or modify the predefined templates.

To create or modify an advanced logging template:

1. Click Logging & Monitoring>Advanced Logging.

2. To select an existing template, highlight its name in the Templates area. To create a new template, choose one of the following from the Add Template drop-down list:

Interval (example)

Watch (example)

Client Stats (example)

Session (example)

Note: The template option you choose affects other options that appear on the page, as described in Step 8 through Step 11.

3. If you are creating a new template, edit the name in the Template Name box.

Note: Do not use periods in the template name.

4. The Template Type drop-down list indicates the type of template you chose (Interval, Watch, Client Stats, or Session). You can change the template type here if needed.

5. From the Template Status box, select On or Off to enable or disable the logging report, respectively. An existing template starts or stops reporting as soon as you change its status and click Apply.

6. Optionally, enter a description in the Template Description box. This is for your own reference but is highly recommended.

Note: Do not include apostrophes (') or quotation marks (") in the description. These are reserved characters for the XML markup that defines the report within the Helix Mobile Server configuration file.

7. You next select one or more output types for the report to determine where Helix Mobile Server sends the report information:

a. Select an output type from the Add Output Type drop-down list.

b. Optionally, edit the name in the Output Name box. This name is for your reference only.

c. For the selected output type, enter the necessary configuration parameters, as described in "Output Methods".

8. If you chose Interval in Step 2, follow this step. Otherwise, skip to the next step. For the Interval template, set the appropriate combination of hour, minute, and seconds for the report interval in the Output Interval boxes. If you leave a box blank, the setting for that box is considered to be 0. Next, follow the instructions in Step 12.

9. If you chose a Watch template in Step 2, follow this step. Otherwise, skip to the next step. For the Watch template, click Property List in the Watches area. In the list that appears, choose the variable or variables that you want to watch for changes.

The optional minimum and maximum output intervals for the Watch template let you generate the report at regular intervals. If you do not define either field, Helix Mobile Server creates the report only when a watched registry variable changes:

Minimum Output Interval

This field holds a number in the format HH:MM:SS that defines the smallest possible time that must pass between log outputs. Changes to the watched variables are not reported until the minimum interval has elapsed. If you set 00:05:00, for example, watched variables that change are reported every five minutes. If no watched variable changes its value in five minutes, though, the report is not created until a variable changes, or the maximum interval is reached.

Maximum Output Interval

This entry contains a number in the format HH:MM:SS that defines the longest possible time allowed to pass before the report output is generated. Changes to variables being watched will generate the report output even if the maximum interval has not been reached, however. If you set 01:00:00, for instance, and no watched variable changes within an hour after the last report, Helix Mobile Server generates the report when the hour elapses.

Next, follow the instructions in Step 12.

Note: Place each watched variable on a separate line in the Watches list. Helix Mobile Server determines which variables to watch by matching the string that appears on each line of the Watches list.

10. If you chose Client Stats in Step 2, follow this step. Otherwise, skip to the next step. For the Client Stats template, set the appropriate combination of hour, minute, and seconds for the report interval in the Output Interval boxes. If you leave a box blank, the setting for that box is considered to be 0. Next, follow the instructions in Step 12.

Note: The report intervals are relative to the start of the player session. So if the interval is five minutes and player A connects at 12:00 whereas player B connects at 12:01, the first reports for players A and B are generated at 12:05 and 12:06, respectively.

11. If you chose Session in Step 2, select the appropriate watch type from the Watch Type list box. As described in "Session Template Watch Types", the watch type you select determines which dynamic event triggers the report output.

12. For any template type, click Property List in the Output Format area to pick the properties from the Helix Mobile Server registry to include in the template. Note that you can define two report outputs for some template types:

If you're setting up a Session template, you can specify one output format by selecting Session Added Output Format, and a second format by choosing Session Deleted Output Format. These output formats for the beginning and end of the watched session can be identical or different.

For a Client Stats template, you can choose Periodic Output Format to specify an output format generated whenever the Output Interval time elapses. By selecting Disconnect Output Format, you can create another output format that is generated whenever a media player stops playing a presentation.

Do the following to define the output format for any template type:

a. In the property list, navigate to the variable that you want to include in the template.

b. When you click on a variable, a string identifying that variable appears in the Output Format text box. Helix Mobile Server reports values for variables in the exact order the variables appear in the text box. To organize the order of variables, cut and paste them in the order that you want them to appear in your report.

Tip: A variable added to the Output Format text box is surrounded by percentage signs (%Server.Bandwidth.Output%). If you reorganize the order of the variables, be sure to include the percent signs that surround each variable name.

For more information: For explanations of reporting properties, see "Registry Properties".

c. Optionally, format the report output by adding boilerplate text.Two tags help with formatting the output sting.

Tip: Use a \n tag to move output to a new line. Carriage returns you enter in the box are also recognized as new lines. Use a \t tag to insert a tab.

13. Click Apply.

 


Helix Universal Mobile Server Version 14.2 Online Help
Revision Date: Tuesday, March 15, 2011
©2011 RealNetworks, Inc., http://www.realnetworks.com