Alteryx Server Knowledge Base

Definitive answers from Server experts.

How To: Enable MongoDB logs in RuntimeSettings.xml

TylerNg
Alteryx
Alteryx
Created

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

 

  1. 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
  2. Stop your Alteryx Service
  3. Open File Explorer and navigate to %PROGRAMDATA%\Alteryx
    IbEzdrN
  4. Open RuntimeSettings.xml in a text editor
  5. Under the Controller section add EmbeddedMongoDBLogPath as a key
    Zl2d0k0
  6. Add a directory as the value with .txt file extension.
    apDKTMI
  7. **OPTIONAL If you would like to have the logs with increased verbosity**
    1. Under the Controller section add EmbeddedMongoDBArgumentsas a key
      nxQocde
    2. Add--vv as the value
      qqiG1Yh
  8. Start your Alteryx Service and Mongo logs should be generating
    2spynow

 

Additional Resources
 

Comments
patrickmckenna88
7 - Meteor

Hello, thanks for this! Could you add some info or screenshots of what kind of data is saved in these logs? 

 

I've been looking for a good way to gather workflow result data that would contain data like where the data outputs are going etc. without having to rework all of our existing scheduled workflows on the server and I'm hoping this might be a solution.

 

Thank you!

fmcrashid
6 - Meteoroid

is there any way of defining the file size? say we set it for 20mb and it will split it auto?