How to change logging levels in server?

How to change logging levels in server

How to change logging levels in server?

EXPLANATION

By default, Tableau Server logs events at the Info level. You can change this if you need to gather more information (if you are working with Tableau Support, for example). As a best practice you should not increase logging levels except when troubleshooting an issue.

Logging Levels
The following logging levels are listed in order of increasing amount of information logged:

off
fatal
error
warn
info (the default)
debug
trace
Change Logging Levels
Set logging levels for Tableau Server using one of several tabadmin set commands. The command you use depends on which component of Tableau Server you want to change the logging level for.

Command
Location of affected logs

(path begins with \ProgramData\Tableau\Tableau Server\data\tabsvc)

server.log.level \vizqlserver\Logs\*.txt
vizportal.log.level \vizportal\*.log
vizqlserver.log.level \vizqlserver\*.log
You need to stop Tableau Server before changing the logging levels, and restart it afterward. If you are running a distributed installation of Tableau Server, set logging levels from the primary server.

To change the logging level:

Open a command prompt as administrator and navigate to the Tableau Server bin directory.

If Tableau Server is installed on the C drive:

C:\Program Files\Tableau\Tableau Server\10.3\bin
or

C:\Program Files (x86)\Tableau\Tableau Server\10.3\bin
Stop Tableau Server by typing:

tabadmin stop

Set the logging level to by typing tabadmin set [command][option]

where [command] is server.log.level or vizqlserver.log.level

and [option] is a valid logging level.

Examples:

tabadmin set server.log.level debug
tabadmin set vizqlserver.log.level warn
tabadmin set vizportal.log.level debug
Restart Tableau Server by typing:

tabadmin restart

Reset Logging Levels
After you gather the information related to the issue you are investigating, reset the logging levels so there is no lingering performance impact.

Reset the logging level back to its default (info) using the appropriate command with a -d option.

Examples:

tabadmin set server.log.level -d
tabadmin set vizportal.log.level -d
tabadmin set vizqlserver.log.level –d

Leave a Reply

Your email address will not be published. Required fields are marked *