System Log
After being successfully started, MDX for Kylin will create a directory named logs/. By default all logs generated during MDX for Kylin runtime will be stored in this directory.
Log files
Log files generated by MDX for Kylin is as follows:
mdx.log
The file is MDX access log generated by Semantic server, whose default logging level is INFO.
semantic.log
Semantic main log file, whose default logging level is INFO.
semantic.out
The standard output of Semantic will be redirected to this file.
gateway.log
Gateway main log file, whose default logging level is INFO.
Log Configuration
MDX for Kylin leverages log4j for logging configuration. Users can edit the log4j.properties file
in the $MDX_HOME/conf/ directory to configure the logging behavior, such as the splitting rule
and the single file size limit. For example:
The default appender type of
semantic.logandmdx.logfiles isorg.apache.log4j.RollingFileAppender, which means creating a new file every time the old file reaches a designated size. To create a new file every day instead, you can setlog4j.appender.fileand/orlog4j.appender.mdxtoorg.apache.log4j.DailyRollingFileAppender.log4j.appender.file.MaxFileSizeandlog4j.appender.mdx.MaxFileSizedefine the size limit mentioned above of anysemantic.logfile ormdx.logfile respectively, default 268435456, i.e. 256MB.log4j.appender.file.MaxBackupIndexandlog4j.appender.mdx.MaxBackupIndexdefine the max reserved amount ofsemantic.logfiles and ofmdx.logfiles respectively, default 10.
After modifications on the log4j.properties file, you should restart MDX for Kylin to apply your changes.
Log debugging
The MDX log contains the caller information of the query ID and API, which can be used to increase the debugging ability.
- Query ID, MDX query issued by Business Intelligence tools, will generate a unique query ID in MDX, you can trace the relevant information according to the query ID.

- The caller information of API can be used to locate the user.
