---
title: "Get log metrics"
method: GET
path: "/api/v1/k8s/logs/metrics"
tags: ["K8s Logs"]
---

# Get log metrics

`GET /api/v1/k8s/logs/metrics`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/k8s/logs/metrics`
- Auth: none declared

Retrieve aggregated log metrics and statistics

## Response `200`

OK

- K8sLogsK8sLogMetrics
  - `active_pods` integer
  - `archives_created` integer
  - `avg_log_processing_time` number: Performance metrics
  - `compression_ratio` number
  - `error_logs_today` integer: Error statistics
  - `logs_this_week` integer
  - `logs_today` integer
  - `monitored_namespaces` integer
  - `recent_archive_jobs` K8sLogsK8sLogArchiveJob[]
    - `app_name_filter` string
    - `archive_path` string
    - `archive_size` integer
    - `cluster_id_filter` string
    - `created_at` string
    - `end_date_filter` string
    - `end_time` string
    - `error_message` string
    - `id` string
    - `log_level_filter` string
    - `logs_processed` integer
    - `namespace_filter` string: Kubernetes-specific job details
    - `policy_id` string
    - `start_date_filter` string
    - `start_time` string
    - `status` string: pending, running, completed, failed
  - `space_saved` string
  - `total_logs` integer
  - `warning_logs_today` integer

---

[API](https://skmtc.dev/nife/apis/nife-io-swagger-api.md) - [All operations](https://skmtc.dev/nife/apis/nife-io-swagger-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nife/apis/nife-io-swagger-api/revisions/6e868dc62795?raw)
