Computes the number of fields that this event uses internally for the values. Tags are not fields in most cases.

ParameterTypeRequiredDefault ValueDescription
asstringoptional[a] _eventFieldCount Name of output field.

[a] Optional parameters use their default value unless explicitly set.

Deprecated:Function usage after aggregates v1.175.0

The use of eventFieldCount() after the first aggregate function in a query is deprecated and will be made unavailable in version 1.189.0 and onwards.

Note

The eventFieldCount() function must be used before any aggregate function, otherwise the field count will not be returned.

Click + next to an example below to get the full details.

Search For Events by Number of Fields in Repository

Search for events with a certain number of fields in a repository using eventFieldCount() function