v1

latestOpenAPI 3.0.02026-07-142351,1971.3 MB
Logs Indexes

Get all indexes

The Index object describes the configuration of a log index. This endpoint returns an array of the LogIndex objects of your organization.

get/api/v1/logs/config/indexes

Response

OK

Example response

{
  "indexes": [
    {
      "daily_limit": 300000000,
      "daily_limit_reset": {
        "reset_time": "14:00",
        "reset_utc_offset": "+02:00"
      },
      "daily_limit_warning_threshold_percentage": 70,
      "exclusion_filters": [
        {
          "filter": {
            "query": "*",
            "sample_attribute": "@ci.job_id",
            "sample_rate": 1
          },
          "name": "payment"
        }
      ],
      "filter": {
        "query": "source:python"
      },
      "name": "main",
      "num_flex_logs_retention_days": 360,
      "num_retention_days": 15,
      "tags": [
        "team:backend",
        "env:production"
      ]
    }
  ]
}