diff --git a/command-line-flags-for-tidb-configuration.md b/command-line-flags-for-tidb-configuration.md
index e4b5b936f2e7e..1981b1c94f778 100644
--- a/command-line-flags-for-tidb-configuration.md
+++ b/command-line-flags-for-tidb-configuration.md
@@ -79,6 +79,12 @@ When you start the TiDB cluster, you can use command-line options or environment
- Default: `""`
- If this option is not set, logs are output to "stderr". If this option is set, logs are output to the corresponding file.
+## `--log-general`
+
++ The filename of the [General Log](/system-variables.md#tidb_general_log)
++ Default: `""`
++ If this option is not set, the general log is written to the file specified by [`--log-file`](#--log-file) by default.
+
## `--log-slow-query`
- The directory for the slow query log
diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md
index 22d205089d648..706a66ce6ea29 100644
--- a/tidb-configuration-file.md
+++ b/tidb-configuration-file.md
@@ -319,6 +319,12 @@ Configuration items related to log.
- Default value: `10000`
- When the number of query rows (including the intermediate results based on statistics) is larger than this value, it is an `expensive` operation and outputs log with the `[EXPENSIVE_QUERY]` prefix.
+### `general-log-file` New in v8.0.0
+
++ The filename of the [general log](/system-variables.md#tidb_general_log).
++ Default value: `""`
++ If you specify a filename, the general log is written to this specified file. If the value is blank, the general log is written to the server log of the TiDB instance. You can specify the name of the server log using [`filename`](#filename).
+
### `timeout` New in v7.1.0
- Sets the timeout for log-writing operations in TiDB. In case of a disk failure that prevents logs from being written, this configuration item can trigger the TiDB process to panic instead of hang.
@@ -355,6 +361,13 @@ Configuration items related to log files.
- Default value: `0`
- All the log files are retained by default. If you set it to `7`, seven log files are retained at maximum.
+#### `compression` New in v8.0.0
+
++ The compression method for the log.
++ Default value: `""`
++ Value options: `""`, `"gzip"`
++ The default value is `""`, which means no compression. To enable the gzip compression, set this value to `"gzip"`. After compression is enabled, all log files are affected, such as [`slow-query-file`](#slow-query-file) and [`general-log-file`](#general-log-file-new-in-v800).
+
## Security
Configuration items related to security.