# Logz.io Archive logs API

**Canonical:** https://apis.io/apis/logz-io/logz-io-archive-logs-api/  
**Provider:** Logz.io — https://apis.io/providers/logz-io/  
**Base URL:** https://api.logz.io/v1/search  
**Documentation:** https://api-docs.logz.io/docs/logz/search/

Logz.io Archive logs API is one of 57 APIs that [Logz.io](https://apis.io/providers/logz-io/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 4 JSON Schema definitions. Tagged areas include Archive logs. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 4 JSON Schemas.

You can archive logs to an AWS S3 bucket or Azure Blob Storage. Archiving gives you the option to restore logs and query them after they have expired from your time-based account. You can use the following endpoints to retrieve, set up, test, and update an account's archive settings. Note: Logs are archived before they are indexed and analyzed by Logz.io. If you are using drop filters, note that dropped logs will still be archived.

## Operations (6)

| Method | Path | Summary |
|---|---|---|
| GET | `/v2/archive/settings` | Retrieve archiving settings |
| POST | `/v2/archive/settings` | Set up archiving |
| POST | `/v2/archive/settings/test` | Test archive settings |
| GET | `/v2/archive/settings/{id}` | Retrieve archive settings |
| PUT | `/v2/archive/settings/{id}` | Update archive settings |
| DELETE | `/v2/archive/settings/{id}` | Delete archive settings |

## Machine-readable artifacts (26)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/logz-io/refs/heads/main/openapi/logz-io-archive-logs-api-openapi.yml
- **Documentation** — https://api-docs.logz.io/docs/logz/search/
- **Documentation** — https://docs.logz.io/api/
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/logz-io/refs/heads/main/json-schema/logz-io-search-request-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/logz-io/refs/heads/main/json-schema/logz-io-log-document-schema.json
- **JSONLD** — https://raw.githubusercontent.com/api-evangelist/logz-io/refs/heads/main/json-ld/logz-io-context.jsonld
- **Documentation** — https://api-docs.logz.io/docs/logz/archive-logs/
- **Documentation** — https://api-docs.logz.io/docs/logz/drop-filters/
- **Documentation** — https://api-docs.logz.io/docs/logz/get-all-alerts/
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/logz-io/refs/heads/main/json-schema/logz-io-alert-rule-schema.json
- **Documentation** — https://api-docs.logz.io/docs/logz/endpoints/
- **Documentation** — https://api-docs.logz.io/docs/logz/manage-users/
- **Documentation** — https://api-docs.logz.io/docs/logz/manage-api-tokens/
- **Documentation** — https://api-docs.logz.io/docs/logz/manage-time-based-log-accounts/
- **Documentation** — https://api-docs.logz.io/docs/logz/metrics-gateway/
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/logz-io/refs/heads/main/json-schema/logz-io-metric-sample-schema.json
- **Documentation** — https://api-docs.logz.io/docs/logz/grafana-alerting/
- **Documentation** — https://api-docs.logz.io/docs/logz/perses/
- **Documentation** — https://api-docs.logz.io/docs/logz/security-rules/
- **Documentation** — https://api-docs.logz.io/docs/logz/connect-to-cloud-trail/
- **Documentation** — https://api-docs.logz.io/docs/logz/parsing/
- **Documentation** — https://api-docs.logz.io/docs/logz/lookups/
- **Documentation** — https://api-docs.logz.io/docs/logz/insights/
- **Documentation** — https://api-docs.logz.io/docs/logz/deployments/
- **Documentation** — https://api-docs.logz.io/docs/logz/snapshots/
- **Documentation** — https://api-docs.logz.io/docs/logz/retrieve-audit-trail/

## Other Logz.io APIs (12)

- [Logz.io Alerts API](https://apis.io/apis/logz-io/logz-io-alerts-api/)
- [Logz.io Associated accounts API](https://apis.io/apis/logz-io/logz-io-associated-accounts-api/)
- [Logz.io Authentication groups API](https://apis.io/apis/logz-io/logz-io-authentication-groups-api/)
- [Logz.io Connect to CloudTrail API](https://apis.io/apis/logz-io/logz-io-connect-to-cloudtrail-api/)
- [Logz.io Connect to S3 Buckets API](https://apis.io/apis/logz-io/logz-io-connect-to-s3-buckets-api/)
- [Logz.io Dashboards create new API](https://apis.io/apis/logz-io/logz-io-dashboards-create-new-api/)
- [Logz.io Dashboards create new folder API](https://apis.io/apis/logz-io/logz-io-dashboards-create-new-folder-api/)
- [Logz.io Dashboards delete API](https://apis.io/apis/logz-io/logz-io-dashboards-delete-api/)
- [Logz.io Dashboards delete folder API](https://apis.io/apis/logz-io/logz-io-dashboards-delete-folder-api/)
- [Logz.io Dashboards get all API](https://apis.io/apis/logz-io/logz-io-dashboards-get-all-api/)
- [Logz.io Dashboards get all folders API](https://apis.io/apis/logz-io/logz-io-dashboards-get-all-folders-api/)
- [Logz.io Dashboards get all global data sources API](https://apis.io/apis/logz-io/logz-io-dashboards-get-all-global-data-sources-api/)

## Tags

Archive logs

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/logz-io/logz-io-archive-logs-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/logz-io/.
