How To: Enable MongoDB logs in RuntimeSettings.xml
When trying to troubleshoot Server/Gallery issues, it can be useful to gather logs to determine if the cause is with your MongoDB. These steps will show you how to enable Mongo logging.
Prerequisites
- Alteryx Server
- Embedded MongoDB
- Administrative Rights
Procedure
- ALWAYS BACK UP FIRST. Make sure to make a copy of your RuntimeSettings.xml as well as your MongoDB. See this article for Backup & Recovery Best Practices
- Stop your Alteryx Service
- Open File Explorer and navigate to %PROGRAMDATA%\Alteryx
- Open RuntimeSettings.xml in a text editor
- Under the Controller section add EmbeddedMongoDBLogPath as a key
- Add a directory as the value with .txt file extension.
- **OPTIONAL If you would like to have the logs with increased verbosity**
- Under the Controller section add EmbeddedMongoDBArgumentsas a key
- Add--vv as the value
- Start your Alteryx Service and Mongo logs should be generating
Additional Resources