---
updatedAt: 2026-06-15T13:51:20.000Z
agentTools:
  siteIndex: https://developer.jamf.com/llms.txt
  projectIndex: https://developer.jamf.com/jamf-pro/llms.txt
---

# Get log flushing settings

Get all log flushing and retention policy settings

> 📋 **Required privilege:** Read Retention Policy

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Jamf Pro API",
    "termsOfService": "https://www.jamf.com/developer-resources/api-license-agreement",
    "version": "11.32.0"
  },
  "servers": [
    {
      "url": "https://yourServer.jamfcloud.com/api"
    }
  ],
  "x-readme": {
    "samples-languages": [
      "curl",
      "swift",
      "ruby",
      "python"
    ],
    "explorer-enabled": false
  },
  "security": [
    {
      "Bearer": []
    },
    {
      "ApiClient": []
    },
    {
      "BasicAuth": [
        "/v1/auth/token"
      ]
    }
  ],
  "paths": {
    "/v1/log-flushing": {
      "get": {
        "tags": [
          "log-flushing"
        ],
        "summary": "Get log flushing settings",
        "description": "Get all log flushing and retention policy settings\n\n> 📋 **Required privilege:** Read Retention Policy",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogFlushingV1"
                }
              }
            }
          }
        },
        "x-required-privileges": [
          "Read Retention Policy"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "LogFlushingV1": {
        "type": "object",
        "properties": {
          "retentionPolicies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RetentionPolicyV1"
            }
          },
          "hourOfDay": {
            "maximum": 23,
            "minimum": 0,
            "type": "integer",
            "default": 0
          }
        }
      },
      "RetentionPolicyV1": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "readOnly": true,
            "example": "Policy Logs"
          },
          "qualifier": {
            "type": "string",
            "readOnly": true,
            "example": "policy"
          },
          "retentionPeriod": {
            "type": "integer",
            "nullable": false,
            "example": 3
          },
          "retentionPeriodUnit": {
            "type": "string",
            "description": "The unit of the retention period (eg: DAY, WEEK, MONTH, YEAR)",
            "nullable": false,
            "example": "MONTH"
          }
        }
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "BasicAuth": {
        "type": "http",
        "description": "Basic auth is used only for obtaining bearer tokens from the /v1/auth/token endpoint",
        "scheme": "basic"
      },
      "ApiClient": {
        "type": "oauth2",
        "description": "Jamf Pro API Roles and Clients provide a client ID and secret for obtaining access tokens using the OAuth2 client_credentials grant type",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/api/v1/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  }
}
```