+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "calculateLogsLabelStats"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++
## calculateLogsLabelStats() function
### calculateLogsLabelStats() function
Signature
```typescript
export declare function calculateLogsLabelStats(rows: LogRowModel[], label: string): LogLabelStatsModel[];
```
Import
```typescript
import { calculateLogsLabelStats } from '@grafana/data';
```
Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| rows | LogRowModel[]
| |
| label | string
| |
Returns:
`LogLabelStatsModel[]`