# Audit Configuration

Sunbird-RC enables audit logging of the schemas. Any operation like ADD/READ/UPDATE/DELETE/SEARCH on the schema will be added to the audit log.

Currently, Sunbird-RC supports two types of audit logging:

1. FILE\
   In file-based audit, the logs are appended to a log file which is present at `audit_logs/audit.log`. The log also has a rolling policy based on the size (30MB).
2. DATABASE\
   In database audit, the logs are added to the database and also to elastic search if it's enabled at the registry level. To store the audit logs in the database an audit schema needs to be created. The sample schema for the audit logs should be as per <https://github.com/Sunbird-RC/sunbird-rc-core/blob/main/java/registry/src/main/resources/raw_audit_schema.json>. The audit schema should be placed in the schema's directory configured for the registry.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rc.sunbird.org/v0.0.14/developer-documentation/audit-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
