Open topic with navigation

# 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 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.

© 2017 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm