Open topic with navigation
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 that you want to measure; you can then configure statistics to measure these fields.
There are two ways to configure XML events:
Write a script to generate the events. For a sample PERL script, see Sample XML Event Script.
Use a third-party front end that can generate 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.