Appendixes > Record Statistics with Statistics Server > Configuration > Create XML Events

Create XML Events
Before you can configure statistics, you must configure the XML events to send to Statistics server. Specifically, you must set up fields that contain values you want to measure; you can then configure statistics to measure these fields.
There are two ways to configure XML events:
*
*
After you configure the events, the XML files that Statistics server receives must contain the desired fields. For example:
<?xml version='1.0' encoding='ISO-8859-1' ?>
<events>
  <queryinfo>
    <ver>0.1</ver>
    <id>10385792</id>
    <url>
     <![CDATA[http://content:19352/action=query&text=dog&numhits=6]]>
    </url>
    <action>query</action>
    <terms><term>dog1</term></terms>
    <duration>10</duration>
    <numhits>5</numhits>
    <type>16</type>
    <user>user_name</user>
    <ip>127.0.0.1</ip>
  </queryinfo>
</events>
In this example, any of the fields in the <queryinfo> tag can be used for statistics.