2. Give the Data Collector Set a name and select [Create manually] (you will be able to use “Create from a template” once you have a template created after going through the manual steps); click [Next].
3. Check [Event Trace Data] under [Create Data Logs], and then click the [Next] button.
4. In the step “Which Event Trace Provider would you like to enable”, click the [Add] button and select the following from the Event Trace Provider list, then click [OK].
Microsoft-Dynamics-AX-ExecutionTraces
Microsoft-Dynamics-AX-XppExecutionTraces
Microsoft-Dynamics-AX-FormServer
5. Click [Next] and specify a directory for storing trace files.
6. In the next step, select [Save and close] and then click the [Finish] button.
7. Now you need to modify some settings for the newly created data collector. Right click the “DataCollector01” in the right pane, and then click the [Properties] menu item:
In the Properties window, switch to the [Trace Buffers] tab and modify the default buffer settings. The default buffer setting does not work well for collecting AX event traces where large amount of events could be generated in short time and fill the buffers quickly. We recommend the following settings (leave the rest setting as default):
Buffer Size: 512kB
Minimum Buffers: 120
Maximum Buffers: 120
8. Now you can start or stop collecting AX event traces by clicking the start/stop buttons on the tool bar:
9. You may want to save the data collector set as a template and reuse the template on a different box, or share it with other users: Right click the Data Collector Sets and select [Save Template] menu item:
10. To keep file sizes smaller and more manageable for longer periods of tracing:
You can then set the data collector properties to restart (“roll over” the file) e.g. every 1000MB, which should enable collection of a series of trace files covering the process from end to end.
Check “Restart the data collector set at limits.” Check “Maximum Size”. Enter your chosen Maximum Size per file.