ChatGPT Enterprise Log Files
Retrieve the compliance log file listing from the ChatGPT Enterprise service without downloading the files, to see how much data a period holds before reading it.
chatgpt-ent-log-files [profile=VALUE] [duration=VALUE] [from=VALUE] [to=VALUE] [event-type=VALUE]
- profile=VALUE
- Optional. Profile name of the ChatGPT Enterprise workspace.
- duration=VALUE
- Optional. Scan only recent data. You should use s(second), m(minute), h(hour), d(day), mon(month) time unit. For example,
10smeans data from 10 seconds earlier. The API requires a start time, so the last 24 hours are used when no period is given. - from=VALUE
- Optional. Start time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
- to=VALUE
- Optional. End time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
- event-type=VALUE
- Optional. e.g. CONVERSATION_MESSAGE, AUDIT_LOG, AUTH_LOG, APP_AUTH_LOG, APP_LOG, CODEX_LOG, CODEX_SECURITY_LOG. All seven are listed when omitted.
Output fields
| Field | Type | Name | Description |
|---|---|---|---|
| _time | Date | End time | e.g. 2026-09-03 13:16:41. When the file was closed; its records end at this point. |
| profile | String | Connect profile | e.g. workspace-prod |
| event_type | String | Event type | e.g. AUTH_LOG. Each file holds one type only. |
| file_name | String | File name | e.g. AUTH_LOG_2026-09-03T04:16:41.393331+00:00.jsonl |
| file_size | Long | File size | e.g. 650. Bytes, so the cost of reading a period can be summed before reading it. |
| file_id | String | File ID | e.g. eclf_0a1b2c3d4e5f60718293a4b5c6d7e8f9 |
| file_sha256 | String | File checksum | e.g. 0a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f9 |