# AddStat

The `AddStat` action creates a new statistic while Statistics Server is running, and adds the statistic to the Statistics Server configuration file.

## Parameters

The `AddStat` action supports the following parameters.

Name

The name of the new statistic. A configuration section with the specified name is added to the Statistics server configuration file.

Type: | String
Default: | None
Required: | Yes
Example: | `Name=dynamicTopN`

ConfigurationOption

Configuration parameters to add for the new statistic. Add each configuration option that you want to configure as an action parameter for the `AddStat` action. Statistics Server adds these parameters to the configuration section for the new statistic.

You can add the following configuration parameters:

- AEqualStat

- ARangeStat

- BitANDStat

- NEqualStat

- NRangeStat

- DynamicField

- Field

- Offset

- Operation

- Period

## Example

    action=AddStat&Name=NewStat&Period=5&Field=Term&Operation=TopN,all

This creates the following section in the configuration file.

    [NewStat]
    Period=5
    Field=Term
    Operation=TopN,all

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm