You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,8 @@ Example (`config.json`):
112
112
"errors": "* | level:ERROR",
113
113
"traces": "* | span_id:*"
114
114
},
115
-
"viewsDir": "./data/views"
115
+
"viewsDir": "./data/views",
116
+
"limit": 1000
116
117
}
117
118
```
118
119
@@ -123,6 +124,7 @@ Example (`config.json`):
123
124
|`bearerToken`| string | Optional bearer token injected into VictoriaLogs requests when `endpoint` is set. | empty |
124
125
|`tables`| map[string]string | Mapping from SQL table name to LogsQL filter or pipeline fragment. Keys are case-insensitive. |`{ "logs": "*" }`|
125
126
|`viewsDir`| string | Directory that stores `.logsql` files for views. Required for `CREATE VIEW`, `DROP VIEW`, and `SHOW VIEWS`. |`./data/views`|
127
+
|`limit`| int | Maximum number of rows returned by any query. | 1000 |
126
128
127
129
Please note that VictoriaLogs is called via the backend, so if you are using sql-to-logsql in Docker, localhost refers to the localhost of the container, not your computer.
128
130
@@ -195,12 +197,15 @@ Successful response:
195
197
Errors emit `HTTP 4xx/5xx` with `{ "error": "..." }`.
196
198
Parser, translator, VictoriaLogs client, and view-store errors map to informative messages (`400`, `409`, `423`, `502`, etc.).
197
199
198
-
### `GET /api/v1/endpoint`
200
+
### `GET /api/v1/config`
199
201
200
-
Returns the compile-time endpoint configured on the server (used by the UI to decide whether the endpoint fields should be read-only):
202
+
Returns the endpoint and max rows limit configured on the server (used by the UI to decide whether the endpoint fields should be read-only):
0 commit comments