---
title: LocalAuditPolicy type | Wartiva GraphQL API
description: Defines local audit behavior and system response when audit logging fails. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/local-audit-policy.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `LocalAuditPolicy` type

Defines local audit behavior and system response when audit logging fails. These settings control how Windows handles audit policy configuration and logging integrity on the local computer.

## Fields

| Field Name | Description |
|---|---|
| `sCENoApplyLegacyAuditPolicy` - [`Boolean`](https://wartiva.com/api-docs/types/boolean.html) | Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings. When enabled, this setting allows fine-grained audit policy management using subcategories, ensuring that Group Policy does not override them with broader category-level settings. |
| `crashOnAuditFail` - [`Boolean`](https://wartiva.com/api-docs/types/boolean.html) | Shut down system immediately if unable to log security audits. When enabled, the system will force a shutdown if it cannot write audit events to the Security log (for example, if the log is full). This helps prevent operation without sufficient security audit coverage. |

## Used by

- [`LocalPoliciesWindows`](https://wartiva.com/api-docs/types/local-policies-windows.html) type: Windows-specific local security and system policies.

## Example

### Example

```json
{"sCENoApplyLegacyAuditPolicy": false, "crashOnAuditFail": true}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
