# 平台审计日志配置

## 启用审计日志

config/logLevel.json文件中:

```
  "audit": {
    "enable": true,
    "logSize": 21
  }
```

enable:是否启用审计日志,默认不启用.

logSize:审计日志保留天数.

## 审计日志格式

审计日志存放在logs目录下,文件名为2018\_01\_01.audit.log,每天一个,重启服务器添加到上次结束后.

2019-08-09 10:33:40,,,193,,,anonymous,,,127.0.0.1,,,/x\_organization\_assemble\_authentication/jaxrs/authentication/bind,,,Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36,,,com.x.organization.assemble.authentication.jaxrs.authentication.ActionBind,,,日渐

如：

```
2019-08-09 10:33:40,,,193,,,anonymous,,,127.0.0.1,,,/x_organization_assemble_authentication/jaxrs/authentication/bind,,,Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36,,,com.x.organization.assemble.authentication.jaxrs.authentication.ActionBind,,,日渐
```

时间,,,执行毫秒,,,当前用户,,,地址,,,浏览器信息,,,运行类,,,扩充


---

# 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://o2oa.gitbook.io/course/ping-tai-shi-shi/shen-ji-ri-zhi.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.
