settings.json reference¶
This page describes the main configuration parameters available
in the settings.json file.
These parameters control server behavior, authentication, database access, caching and system limits.
The Warehouse connection page of the admin console shows the full path
of the loaded settings.json (with a Copy button); in the free desktop
edition the Open button next to it opens the file in your editor.
Every parameter below has its own anchor — hover over a name and use the ¶ link to share a direct reference to it.
Parameter reference¶
- SERVER_DB¶
Defines the primary database used by the XLTable server for internal operations. See Database connections for the list of supported database types.
Example:
"SERVER_DB": "ClickHouse"
Default: not set
- CREDENTIAL_DB¶
Defines credentials used for accessing the server database. The set of keys depends on
SERVER_DB— see Database connections for a connection example for every supported database type.This block can be reviewed and tested on the Connection page of the web admin console; the free desktop edition can also edit and save it there — see Connection setup in the admin console.
Example (ClickHouse):
"CREDENTIAL_DB": { "user": "olap_reader", "password": "...", "host": "ch.company.local", "port": "8443", "secure": true, "verify": true, "query_timeout": 60 }
Default: not set
- CREDENTIAL_DB.query_timeout¶
Maximum execution time of a single database query, in seconds. A query running longer is cancelled and an error is returned to Excel. Supported by all connection types.
Example:
"CREDENTIAL_DB": { "...": "...", "query_timeout": 120 }
Default:
60
- CREDENTIAL_DB.ca_cert¶
Path to a PEM file with the CA certificate (chain) that signed the warehouse’s TLS certificate — needed for a managed ClickHouse in a cloud or a Trino server behind a corporate CA, whose roots are not public. Supported by the ClickHouse and Trino connection types; see Cloud ClickHouse: CA certificate.
Example:
"CREDENTIAL_DB": { "...": "...", "ca_cert": "/etc/xltable/yandex-ca.pem" }
Default: not set (system trust store)
- EDITION¶
Edition the server runs as:
"server"— the full multi-user server: network endpoint, Basic / Active Directory authentication, a license file is required. This is the default when the key is absent, so existing installations are not affected."free"— the free single-user desktop edition. The endpoint binds to127.0.0.1only and accepts requests without a password (Excel connects anonymously tohttp://127.0.0.1:<port>); no license file is needed. The built-in MCP server for AI assistants works here anonymously (in the server edition it requires Basic authentication — see MCP server). Cube definitions are always read from the local folder (CUBE_SOURCEis forced to"folder"), and theUSERS/USER_GROUPS/ADMIN_GROUPSkeys are not required. Requests with a non-localHostorOriginheader are rejected with403— the free edition works only on the machine it runs on.
The value is fixed at server start: changing it in a running server is ignored (with a log message) until restart.
Note
"free"is supported only by the Windows desktop distribution. The Linux and Windows Server (IIS) distributions are built server-only: started with"EDITION": "free", they refuse to serve and print a message pointing to the desktop distribution — on those installations the network socket is bound by gunicorn or IIS, so the free edition’s local-only guarantee could not be enforced.Example:
"EDITION": "free"
Default:
"server"
- CUBE_SOURCE¶
Where the server reads cube definitions from:
"database"— theolap_definitiontable of the analytical database (see Cube definition storage);"folder"— local.sqlfiles in the folder set byCUBES_FOLDER. Each file is one cube (file name without the extension = cube name); the file content is the same definition text that would otherwise be stored inolap_definition, so the same file works in both modes without changes. Files are re-read on every request — saving a file makes the change visible immediately (data already shown in a pivot table is refreshed by Excel Refresh, as usual). In this mode Excel sees a single catalog namedCubes.
SQL queries of the cubes are executed through
SERVER_DB/CREDENTIAL_DBin both modes — only the source of the definitions differs.Note
Excel binds a pivot table to the catalog+cube pair. Switching the mode changes the catalog name (a warehouse database name vs
Cubes), so existing workbooks have to be reconnected.Example:
"CUBE_SOURCE": "folder"
Default:
"database"
- CUBES_FOLDER¶
Folder with local cube definitions: the output folder of autogen and, when
CUBE_SOURCEis"folder", the folder the server reads cubes from. A relative path is resolved from the application root (the server working directory).Example:
"CUBES_FOLDER": "/usr/olap/xltable/cubes"
Default:
"cubes"
- REPORTS_FOLDER¶
Folder with the reports of the web pivot table (
/reports): one JSON file per report, written atomically; the server creates the folder on the first save. A relative path is resolved from the application root (the server working directory). Default:reports. Several servers behind a load balancer must share this folder (a network share), otherwise reports stay local to the machine that saved them.Example:
"REPORTS_FOLDER": "D:/xltable/reports"
- WRITE_LOG¶
Enables debug logging of XLTable operations (MDX, generated SQL, Jinja diffs, result preview). Log files will be located in the folder
...\xltable\log. Applies to MCP requests too: each request to/mcpleaves a JSON-RPC request/response pair inlogin addition to the SQL and context dumps (see MCP server).Example:
"WRITE_LOG": true
Default:
false
- DUMP_XMLA¶
Dumps every raw XMLA request and response to a separate file in the
logfolder. Intended only for diagnosing Excel/XMLA protocol issues: a single Excel action generates dozens of files. Independent ofWRITE_LOG. MCP request/response dumps are included as well, so protocol dumps cover both paths.Example:
"DUMP_XMLA": true
Default:
false
- LOG_RETENTION_DAYS¶
Files in the
logfolder older than this number of days are deleted automatically (checked at most once a day, on service start). Set to 0 to disable the cleanup.Example:
"LOG_RETENTION_DAYS": 30
Default:
14
- SERVER_PORT¶
TCP port the server listens on. Applies to the standalone deployment (Ubuntu /
python main.py); under IIS the port is managed by IIS. TheOLAP_PORTenvironment variable overrides this setting — the Ubuntu installer uses it to run several worker processes on consecutive ports (5000, 5001, …). The built-in MCP server for AI assistants is served on the same port, athttp://127.0.0.1:<port>/mcp. Requires a service restart.Example:
"SERVER_PORT": 5000
Default:
5000
- SERVER_THREADS¶
Number of worker threads of one server process (standalone deployment only). Threads waiting on the database do not block each other, so this is how many queries one process keeps in flight towards the warehouse; CPU-intensive result building still runs one report at a time per process — for parallel heavy reports run several worker processes (see Linux). Requires a service restart.
Example:
"SERVER_THREADS": 32
Default:
16
- USERS¶
Defines the list of users for local authentication. Keys are user names, values are passwords.
Example:
"USERS": {"user1": "pass1", "user2": "pass2"}
Default: not set
- USER_GROUPS¶
Defines user groups used for role-based access control. Keys are user names, values are lists of groups the user belongs to — these group names are matched against
--olap_user_groupsin cube definitions and againstADMIN_GROUPS.Example:
"USER_GROUPS": { "user1": ["olap_users", "olap_admins"], "user2": ["olap_users"] }
Default: not set
- DATABASES¶
Server edition with
CUBE_SOURCE"database": the databases (cube catalogs) the server shows at all. Every other warehouse database with anolap_definitiontable is hidden from the catalog list in Excel, fromlist_databasesin MCP and from the REST API, and a request that names such a database directly is rejected (Database 'x' is not available to this user). Combine withGROUP_DATABASESto split the allowed databases between groups. Picked up on the fly, no restart or cache clearing needed. Ignored with the folder cube source (there is always one catalog,Cubes).Example:
"DATABASES": ["sales", "finance"]
Default: not set — all databases of the warehouse are visible
- GROUP_DATABASES¶
Server edition with
CUBE_SOURCE"database": which databases each user group sees. Keys are group names — the groups fromUSER_GROUPSfor local users and Active Directory groups for domain users; values are lists of database names. A user sees the union of the databases of all their groups (withinDATABASES, when it is set). A user none of whose groups is listed here sees no databases — a group that should see everything has to be listed with every database. To give a single user their own set, put them in a dedicated group. Hidden databases are not just left out of the lists: a request that names one directly is rejected. Picked up on the fly. The Cache page of the admin console shows the resulting list per user (see Admin panel).Example:
"USER_GROUPS": { "ivan": ["analysts"], "olga": ["finance_team"] }, "GROUP_DATABASES": { "analysts": ["sales"], "finance_team": ["sales", "finance"] }
Here
ivanseessales,olgaseessalesandfinance, and a user from a group that is not listed sees nothing.Default: not set — groups do not restrict database visibility
- MAX_CELLS¶
Limits the size of the pivoted result returned to Excel, measured in cells: unique row combinations × column combinations × measures. Queries exceeding the limit are rejected with a message suggesting filters, the same way SSAS cancels oversized results (
RowsetSerializationLimit). The legacyMAX_ROWSkey is still accepted and used asMAX_CELLS.Example:
"MAX_CELLS": 500000
This key is required: the server reports a configuration error at startup when it is missing.
- MAX_FILTER_MEMBERS¶
Caps the member list the server enumerates when Excel applies Keep Only / Hide Selected Items on a field. If the dimension level has more members than the cap, the resulting filter keeps only the first
MAX_FILTER_MEMBERSof them and a warning is written to the log. The 10,000-item limit of the filter dropdown list is separate and not affected by this setting.Example:
"MAX_FILTER_MEMBERS": 50000
Default:
100000
- OVERLOAD_GUARD¶
Rejects data queries while the server host is out of resources, instead of forwarding them to the database. When any threshold is exceeded —
MAX_MEMORY_PERCENT(RAM usage, %),MAX_CPU_PERCENT(CPU usage, %),MIN_FREE_DISK_MB(free disk space, MB) — Excel shows “Server is overloaded … Please try again later” with the specific reason on data refresh. Metadata (Discover) requests and session open/close requests are never rejected, so connecting to a cube and already open connections keep working. The same guard covers MCP tool calls that query the warehouse (query_cube,describe_cube,list_warehouse_tables,autogen_cube) — the AI assistant gets the same message, while lightweight metadata tools keep responding. Each threshold is optional; omit the whole block to disable the guard. Note: inside a container the measured resources are the host’s, not the container limits.Example:
"OVERLOAD_GUARD": { "MAX_MEMORY_PERCENT": 90, "MAX_CPU_PERCENT": 95, "MIN_FREE_DISK_MB": 512 }
Default: disabled
- AUTH_CACHE_TIMEOUT¶
Defines the lifetime of a cached authorization in seconds, for both local (
USERS) and Active Directory users. After this period expires, XLTable re-checks the user against the current configuration or LDAP on the next request. When not set, the value ofLDAP_CACHE_TIMEOUTis used.Example:
"AUTH_CACHE_TIMEOUT": 1800
Default:
3600
- LDAP_CACHE_TIMEOUT¶
Legacy name of
AUTH_CACHE_TIMEOUT; kept for backward compatibility and used whenAUTH_CACHE_TIMEOUTis not set.Example:
"LDAP_CACHE_TIMEOUT": 300
Default: not set (when neither this key nor
AUTH_CACHE_TIMEOUTis set,3600is used)
- METADATA_CACHE_TTL¶
Defines the lifetime in seconds of cached cube metadata (cube definitions, database/table/field lists) and of already-built session responses. After this period expires, XLTable re-reads the data from the database, so an edited cube definition is picked up automatically within this window — no manual cache clearing is required. Set to 0 to disable expiry (cache entries then live until the cache is cleared).
Example:
"METADATA_CACHE_TTL": 300
Default:
600
- RESULT_CACHE_MAX_MB¶
Query results larger than this size (MB) are not stored in the shared result cache and are rebuilt on every refresh instead. Storing very large results makes all worker processes queue on the cache write, so oversized responses are cheaper to recompute. Set to 0 to disable result caching entirely (metadata is still cached).
Example:
"RESULT_CACHE_MAX_MB": 32
Default:
16
- SQL_CACHE_ENABLED¶
Shared SQL result cache: when several users (or several sessions of one user) produce an identical SQL query, it is executed in the database once and the result is shared between them. Safe with row-level security: per-user access filters are rendered into the SQL text itself, so users with different permissions generate different SQL and never share results. Excel Refresh gives the pressing user fresh data and updates the shared entries for everyone (see Refreshing data). Set to
falseto execute every query individually.Example:
"SQL_CACHE_ENABLED": false
Default:
true
- SQL_CACHE_TTL¶
Lifetime (seconds) of entries in the shared SQL result cache: within this window an identical query is served from the cache instead of the database. Set to 0 to disable expiry. When not set, the value of
METADATA_CACHE_TTLis used.Example:
"SQL_CACHE_TTL": 1200
Default:
600
- SQL_CACHE_MAX_MB¶
Total size cap (MB) of the shared SQL result cache. When the cap is exceeded, the least recently used results are evicted.
Example:
"SQL_CACHE_MAX_MB": 512
Default:
256. A non-numeric or non-positive value does not disable the cache — it falls back to the default with an error logged (to turn the cache off, useSQL_CACHE_ENABLED).
- SQL_CACHE_MAX_RESULT_MB¶
A single query result larger than this size (MB) is not stored in the shared SQL result cache and is re-read from the database instead. (Not to be confused with
RESULT_CACHE_MAX_MB, which caps the cached XMLA response of one session.)Example:
"SQL_CACHE_MAX_RESULT_MB": 64
Default:
32. As withSQL_CACHE_MAX_MB, a non-numeric or non-positive value falls back to the default with an error logged.
- CACHE_BACKEND¶
Storage of the shared session/metadata cache and the shared SQL result cache.
sqlite— a local database file shared by the worker processes of one machine.redis— an external Redis server shared by several XLTable servers behind a load balancer (requiresREDIS_URL); see Scaling to multiple servers (Redis cache). If theredisbackend is misconfigured, the server logs an error and falls back tosqlite.Example:
"CACHE_BACKEND": "redis"
Default:
sqlite
- REDIS_URL¶
Redis connection string for
CACHE_BACKEND: redis, in the formredis://[:password@]host:port/db(rediss://for TLS). All servers sharing the cache must use the same Redis database and have identicalsettings.jsonfiles.Example:
"REDIS_URL": "redis://:secret@10.0.0.5:6379/0"
Default: not set
- CONVERT_FIELDS_TO_STRING¶
Forces conversion of dimension level expressions to string type in the generated SQL (
toString(...)or the dialect equivalent).Whatever the setting, the level values that come back from the database are converted to text by the server before the PivotTable axes are built, so with
falsea numeric level no longer breaks the query when the database is able to return a mixed column for the[All]totals (recent ClickHouse, StarRocks). Databases that reject a query mixing the'[All]'total with a numeric column (older ClickHouse, Greenplum, Trino, BigQuery, Snowflake) still need an explicittoStringin the level definition when the setting is off.Example:
"CONVERT_FIELDS_TO_STRING": true
Default:
true
- SQL_FORM¶
Shape of the SQL that XLTable generates for a PivotTable query.
legacy(default) — one query per measure group: the fact table is joined to the dimension tables first, then grouped and aggregated. This is the form XLTable has always produced.two_stage— pre-aggregation friendly form: the fact table is filtered and aggregated on its own first (by the dimension keys it holds), and dimension names are joined to that small aggregated result afterwards. The database reads the fact table once without joins, and its own pre-aggregates — ClickHouse projections, StarRocks materialized views — can answer the first stage. The PivotTable result is the same in both forms. Filters on dimension attributes are applied to the fact table as a list of dimension keys, which XLTable obtains with a small separate query (cached like any other SQL result).A measure group falls back to
legacyfor the query when it cannot be computed this way — see Two-stage SQL form (pre-aggregation friendly) for the rules. SetWRITE_LOGto see which form each query used.The setting applies to the whole server; a cube definition can override it for itself with the
sql_formtag.Example:
"SQL_FORM": "two_stage"
Default:
legacy
- FILTER_MODE¶
Only with
"SQL_FORM": "two_stage". How a filter on a dimension attribute (“Region = EU”) reaches the fact table in stage 1.key_list(default) — XLTable reads the matching dimension keys with a small separate query and writes them into the fact query as constants:sales.store_id IN (12, 17, …). The fact query has no joins, so a ClickHouse projection or a StarRocks materialized view built over the fact table alone can answer it.join_name— the dimension tables used in filters and on the PivotTable axes are joined to the fact table inside stage 1 exactly as written in the cube: the condition stays on the attribute (stores.region = 'EU') and grouping is by the attribute itself (stores.name), not by the fact key. Use it when your StarRocks materialized views are built as “fact joined with dimensions” and store the attribute names: StarRocks rewrites a query to such a view only when the query joins exactly the same tables, so a PivotTable is served by the view when its filters and axes together cover every dimension the view joins. Not useful on ClickHouse (projections cannot join).The setting applies to the whole server; a cube definition can override it for itself with the
filter_modetag.Example:
"FILTER_MODE": "join_name"
Default:
key_list
- FILTER_KEY_LIST_MAX¶
Only with
"SQL_FORM": "two_stage". The largest list of dimension keys that is written into the fact query as constants (store_id IN (12, 17, …)). Above this size the filter is written as a subquery on the dimension table instead; the result is the same, the query text is shorter. Rarely needs changing.Example:
"FILTER_KEY_LIST_MAX": 50000
Default:
10000
- ADMIN_GROUPS¶
Defines user groups for accessing the admin panel (
/admin). A user whoseUSER_GROUPS(or Active Directory groups) intersect this list gets admin access.Example:
"ADMIN_GROUPS": ["olap_admins"]
Default: not set
Note
ADMIN_GROUPSis the only way to grant admin access. The legacyOWNERSkey (admin accounts bypassing groups, from version 1.x) is no longer read: accounts listed there get no access, and a configuration that still containsOWNERSlogs a warning at startup. Move such accounts toUSERS/USER_GROUPSwith a group listed inADMIN_GROUPS.
- ANALYST_GROUPS¶
Defines user groups that see the Cubes page of the web application (
/cubes— cube status, checker findings with line numbers, the structure as the server understood it, a preview with the SQL sent to the warehouse; see Cubes page). A user whoseUSER_GROUPS(or Active Directory groups) intersect this list is an analyst; administrators (ADMIN_GROUPS) see the page without being listed here. An analyst does not get the admin console.Example:
"ANALYST_GROUPS": ["cube_authors"]
Default: not set — only administrators see the page. In the free desktop edition the single local user sees it without this setting.
- API_TOKENS¶
Bearer tokens (a string or a list of strings) accepted by the cache management API (see Cache management API) — intended for external systems such as ETL pipelines, so they do not need an admin password. When not set, the API accepts only admin credentials. The tokens carry no user identity and are not accepted by the REST API data endpoints — give a pipeline that reads cubes its own user in
USERS.Example:
"API_TOKENS": ["etl-3f7c9a1b", "backup-51d2e8c4"]
Default: not set
- IMPERSONATION_USERS¶
Service accounts (a name or a list of names from
USERSor the domain) allowed to act on behalf of other users with theX-Effective-Userheader on/mcpand the REST API — for agent platforms that keep one MCP configuration per workspace (LibreChat, Numira). The header from any other account is rejected with403. See One service account, many users: X-Effective-User.Example:
"IMPERSONATION_USERS": ["svc_chat"]
Default: not set — impersonation is disabled
- CREDENTIAL_ACTIVE_DIRECTORY¶
Defines connection parameters for Active Directory authentication. See Installation for details on AD setup.
Example:
"CREDENTIAL_ACTIVE_DIRECTORY": { "server_address": "dc.company.org", "domain_full": "company.org", "username": "service_olap", "password": "...", "access_groups": ["olap_users_all", "olap_users_sales"], "use_ssl": true }
use_ssl(since 2.1.1) — connect to the domain controller over LDAPS (port 636). Recommended whenever domain passwords are verified by LDAP bind (the login-and-password path below), so credentials do not cross the network in cleartext. LDAPS can also be selected by givingserver_addressas anldaps://dc.company.orgURL. The controller’s certificate is then validated against the server’s system CA store, so the DC certificate (or its issuing CA) must be trusted there and its subject must match the host used to connect. Set"tls_verify": falseto skip that validation (encrypted but not authenticated — only for a self-signed DC certificate you choose not to install in the trust store).nested_groups(since 2.1.1, defaulttrue) — group membership is resolved transitively (a user in a group nested inside an access group qualifies), as Active Directory administrators expect. Setfalseto require direct membership only.With the section configured, users can also sign in with their domain login and password over HTTP Basic: the password is verified against the domain controller (LDAP bind), groups are read from AD and checked against
access_groups. Repeated failed attempts for a name are throttled to avoid locking the domain account. Put the server behind HTTPS and enableuse_sslwhen this path is used over the network.Default: not set
- BIND_HOST¶
Address the server listens on (server edition, standalone deployment — Ubuntu /
python main.py; under IIS the binding is managed by IIS). Behind the local Apache front the Ubuntu installer sets127.0.0.1(both--auth adand--auth app), so the workers are reachable only through the front and nobody can bypass its authentication or TLS. With--front nonethe key is removed: your own load balancer on another machine talks to the workers directly. The free edition always listens on127.0.0.1and ignores this key. Requires a service restart.Example:
"BIND_HOST": "127.0.0.1"
Default:
0.0.0.0(all interfaces)
- TRUSTED_PROXY¶
Accept the user identity from an authenticating front (Apache
mod_auth_gssapi, a Kerberos-capable load balancer) passed in a request header. The header is honoured only when the request’s TCP peer is inaddresses(default: loopback), so a client cannot forge it; XLTable should then listen on127.0.0.1only (BIND_HOST). The Ubuntu installer writes both keys in the--auth admode. See Single sign-on on Linux: an authenticating front."TRUSTED_PROXY": {"header": "X-Remote-User", "addresses": ["127.0.0.1", "::1"]}
Without
headerthe key only declares which peers’X-Forwarded-Protois trusted — for a load balancer on another machine that terminates TLS while XLTable authenticates users itself (--auth app): it satisfiesREQUIRE_HTTPSwithout switching it off, and no identity header is accepted.X-Forwarded-Protois trusted from one address — with several listed, the first non-loopback one. The installer writes this form for--front none --trusted-proxy <address>."TRUSTED_PROXY": {"addresses": ["10.0.0.5"]}
Default: not set (the header is ignored;
X-Forwarded-Protois trusted from loopback only)
- REQUIRE_HTTPS¶
Refuse to serve Active Directory authentication over plain HTTP. When
CREDENTIAL_ACTIVE_DIRECTORYis configured this is on by default (since 2.1.1): a request that did not arrive over HTTPS is rejected (XMLA/MCP with403, a browserGETis redirected tohttps://), because the domain password and the session token must not cross the network in the clear. HTTPS is detected from the WSGI scheme, which the reverse proxy’sX-Forwarded-Protosets only when it arrives from loopback, and from the IIS server variables.Set
falseonly when TLS is terminated by an upstream load balancer that cannot passX-Forwarded-Proto. The Windows Server (IIS) deployment is not affected — there TLS is governed by the IIS site binding, and this setting is ignored. The free edition (local only) is never affected.Example:
"REQUIRE_HTTPS": true
Default: on when
CREDENTIAL_ACTIVE_DIRECTORYis set, off otherwise
- MCP¶
Options of the built-in MCP server (see MCP server). A block of sub-keys:
sample_values_max— how many values of a dimension leveldescribe_cubereturns assample_values; a level with more distinct values returns the firstsample_values_maxof them and is listed insample_values_truncated. Default30.run_sql— the read-only SQL tool for cube authors (see Building cubes with an assistant); a block of sub-keys:enabled(defaultfalse— the tool is not offered),schemas(allow-list of schemas, default any),max_rows(default200),timeout(seconds, default30).
Example:
"MCP": {"sample_values_max": 50, "run_sql": {"enabled": true, "schemas": ["dwh"]}}
Default: not set (defaults above)
- OAUTH¶
Built-in OAuth 2.1 authorization server for MCP clients (server edition; see OAuth 2.1 for MCP clients). A block of sub-keys, all optional:
enabled— publish the OAuth endpoints and accept Bearer access tokens on/mcp(defaulttrue);issuer— the external base URL of the server as clients see it (https://olap.company.local); needed when the server sits behind a proxy that rewrites the host. Default: derived from the request;access_token_ttl— seconds an access token lives (default3600);refresh_token_ttl— seconds a refresh token lives (default2592000, 30 days; rotated on every use);consent_ttl_days— how long a user’s consent for an application is remembered (default90);allow_insecure_http— pilot mode without TLS: serve the OAuth endpoints over plain HTTP from non-local addresses and accept plainhttp://redirect URIs at client registration (an AI application on a plain-HTTP address in the LAN). Defaultfalse; pilots only — passwords and tokens travel in the clear. Ignored whenREQUIRE_HTTPSis in force — with Active Directory configured, set"REQUIRE_HTTPS": falseexplicitly as well.
Example:
"OAUTH": {"issuer": "https://olap.company.local", "consent_ttl_days": 30}
Default: enabled with the defaults above; the free edition has no OAuth endpoints (MCP is anonymous on the local machine there)
- EXPORT¶
Enables exporting large pivot results to CSV files and the preview mode (the service Data Output field). A block of sub-keys — see Export to file (EXPORT). When the section is absent, the feature is fully off and leaves no trace: cube metadata, menus and server behavior are exactly as before.
File export is currently supported for ClickHouse only (the data is streamed to the file by the connector); on other databases do not enable this section — the export would fail at run time.
Example — an empty object is enough to enable the feature:
"EXPORT": {}
Default: disabled
- PUBLIC_URL¶
The server address as Excel users’ browsers reach it, e.g.
http://bi.company.local:5000. Used to build the links Excel opens in the browser (the export status page). When not set, the address of the incoming request is used — set this explicitly when the server is behind a proxy or reachable by several names.Avoid
localhostin this value — on Windows it resolves to IPv6 first and every request waits ~2 s for the fallback to IPv4; use127.0.0.1or a real host name instead (the server logs a warning at startup iflocalhostis configured here).Example:
"PUBLIC_URL": "http://bi.company.local:5000"
Default: not set
Export to file (EXPORT)¶
The EXPORT section of settings.json turns on file export and
the preview mode for all cubes (see Working with large results: preview and file export for how users work
with it). Minimal configuration — an empty object is enough:
{
"EXPORT": {},
"PUBLIC_URL": "http://bi.company.local"
}
All keys of the section are optional:
- EXPORT.enabled¶
Set to
falseto turn the feature off while keeping the section (same as removing it).Example:
"EXPORT": {"enabled": false}
Default:
true
- EXPORT.preview_rows¶
Number of rows shown by the
Preview: first N rowsmode of the Data Output field. The caption of the member shows the actual configured number.Example:
"EXPORT": {"preview_rows": 500}
Default:
1000
- EXPORT.hard_limit_rows¶
Absolute cap on the number of rows in an exported file — a safety net against runaway exports.
Example:
"EXPORT": {"hard_limit_rows": 10000000}
Default:
50000000
- EXPORT.file_ttl_hours¶
How long a built export file is kept on the server. Within this window, repeated exports of an unchanged layout return the same file without re-querying the database; after it the file is deleted and the next export builds it again.
Example:
"EXPORT": {"file_ttl_hours": 8}
Default:
24
- EXPORT.decimal_separator¶
Decimal separator for numbers in the CSV file:
","(comma — matches Excel with Russian regional settings) or"."(numbers written as-is).Example:
"EXPORT": {"decimal_separator": "."}
Default:
","
- EXPORT.dimension_caption¶
Name of the service field in the field list. Change it if a cube already has a field named Data Output (in that case the feature is disabled for such a cube automatically and a warning is logged).
Example:
"EXPORT": {"dimension_caption": "Export"}
Default:
Data Output
- EXPORT.excel_max_rows¶
Exports with more rows than this (plus the header line) are downloaded as
.csv.zipinstead of a plain.csv— opening a larger CSV directly in Excel would silently truncate it at the worksheet limit. The default equals the Excel worksheet limit; there is normally no reason to change it.Example:
"EXPORT": {"excel_max_rows": 500000}
Default:
1048576
Export files are written to the export_files folder next to the server
code, the job registry lives in exports.db; both appear on first use.
The Cache page of the admin panel shows the current jobs, files and their
total size, and provides a Clear Export Jobs and Files button that also
removes orphaned files and compacts exports.db. In multi-server
deployments (CACHE_BACKEND: redis) export is not yet cluster-aware:
route /exports/* requests to one designated server on the load balancer.
Applying configuration changes¶
Changes to settings.json are picked up automatically — no service
restart is required. XLTable watches the file and re-reads it within a few
seconds of saving (in multi-process deployments such as IIS, every worker
process picks the change up on its next request).
If the saved file contains a JSON syntax error, the service keeps running with the previous configuration and writes the parse error to the log; the file is re-read once it is fixed.
When the configuration content changes, the cache is cleared automatically, so nothing cached under the previous (for example, incorrect) configuration — authorized sessions, cube metadata — stays in effect. Users re-authorize transparently on their next request.
The same comparison runs on service start, so a restart with a changed
settings.jsonalso begins with a clean cache.
The admin panel (see Admin panel) shows which settings file is in use and when it was last loaded.
Deployment-level parameters that live outside settings.json (service
user, port, IIS application pool settings) still require a service restart.