In this post, we will learn how to clean up space in the tableau server. We may run out of space after a certain time where our Tableau server is running. Instead of increasing the disk size, we can clean old logs that may not be necessary. So that we can get free space up to 50%.
In this post, we will learn some command to free the space so that our Tableau server runs smoothly.
Solution to clean up space in the tableau server
You can use following command to clean up the space.
tsm maintenance cleanup -l --log-files-retention 2
The above example code, cleans the log files older than 2 days.
Note: You may need to add a user password in order to complete this process. This will install a Cleanup service and uninstalls cleanup service after success.
You may see output like following:
tsm maintenance cleanup -l --log-files-retention 2 Logging in as user 'ubuntu' since no --username flag was given. Password: Starting the cleanup job. Job id is '33', timeout is 10 minutes. 33% - Installing cleanup services. 66% - Deleting old log files. 100% - Uninstalling cleanup services. Cleanup completed.
In this post, we learned to clean up the space in the tableau server to run our server smoothly.