Open topic with navigation

# 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

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! 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. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm