Operation Debug Logging for Private Agents¶
Operation debug logs are additional log files and data that are generated for operations when operation debug logging is enabled. Operation debug logging is used mainly for debugging problems during testing and should not be turned on in a production environment.
On Private Agents, enabling operation debug logging can result in the generation of three types of logs:
Operation Debug Log Files: Files written to a Private Agent directory that are generated when operation debug logging is enabled either on an individual Cloud Studio or Design Studio operation or for all operations on a Private Agent through an agent's configuration file. The files are accessible directly on Private Agents and are downloadable through the Management Console Agents > Agents and Activities pages. The files are subject to the retention policy configured in the agent's cleanup rules, which is 1 day by default.
When operation debug logging is turned on, generated debug log files may be large in quantity and/or size. It is recommended to disable debug logging as soon as possible.
Component Input and Output Data: Data written to a Cloud Studio operation log when operation debug logging is enabled on a Cloud Studio operation running on a 10.48 or later Private Agent. The data is retained for 7 days by Jitterbit Harmony.
When component input and output data are generated, all request and response data for that operation are logged to the Harmony cloud and remain there for 7 days. Be aware that personally identifiable information (PII) and sensitive data such as credentials provided in a request payload will be visible in clear text in the input and output data within the Harmony cloud logs.
API Operation Logs: Operation logs for both successful and unsuccessful API operations (configured for Custom APIs or OData Services). When operation debug logging is not enabled, only unsuccessful API operations are logged in the operation logs.
Enabling Operation Debug Logging¶
Operation debug logging can be enabled on an individual operation or on an entire Private Agent. Component input and output data are generated by default on Private Agents 10.48 or later but can be disabled using additional settings in the Private Agent configuration file.
Operation-level debug logging can help if you are having issues with an individual operation and do not need to turn on debug logging at the agent level, which may generate files that are large in quantity and/or size.
Cloud Studio: Use an operation's actions menu to select Settings. In the Options tab, select Enable Debug Mode Until and set a date for debug logging to be turned off. The option to cascade the debug mode settings to any child operations is also available.
Design Studio: Right-click the background of any operation and select Options. In the Operation Options window, select Enable Debug Mode Until and set a date for debug logging to be turned off.
This date is limited to 2 weeks from the current date. Operation debug logging will be turned off at the beginning of this date (that is, at 12:00 am) using the time zone of the agent.
Entire Private Agent¶
Agent-level operation debug logging can be enabled from the Private Agent configuration file for all operations running on a Private Agent.
Enabling debug logging at the agent level may create very large files in the directory of each Private Agent within the Private Agent Group. If you are having issues with an individual operation, consider enabling debug logging for an individual operation instead.
To enable debug logging, edit the Private Agent configuration file as follows, and then restart Jitterbit services.
The files created in this directory can become very large. Turn off debug logging as soon as you can, and delete the files when they are no longer needed.
Private Agents that are version 10.48 and later have the section
[VerboseLogging] present in their Private Agent configuration file with the setting
verbose.logging.enable=true, which enables generation of component input and output data:
When upgrading an earlier Private Agent version to 10.48 or later, the generation of input and output data is automatically enabled by default, even if the
[VerboseLogging] section and the
verbose.logging.enable setting are not present in the configuration file.
To disable generation of component input and output data, you must add the
[VerboseLogging] section and set
verbose.logging.enable=false to prevent component input and output data from being logged to the Harmony cloud.
Additional settings in the
[VerboseLogging] section should not be changed unless instructed by Jitterbit Support.
Operation Debug Log Files¶
Once operation debug logging is enabled on a Cloud Studio operation, Design Studio operation, or entire Private Agent, operation debug log files for the applicable operations are generated when those operations are executed.
Debug Log File Access¶
Operation debug log files can be accessed from the Management Console or directly from the agent machine:
- Management Console
You can download a ZIP archive of the operation debug log files from these Management Console pages:
On a Private Agent, you can access a ZIP archive of the logs in these default locations:
C:\Program Files\Jitterbit Agent\DataInterchange\Temp\Debug
To change the operation debug log directory, edit the Private Agent configuration file as follows, and then restart Jitterbit services: - Under the
WriteLogDirto the desired directory location.
Debug Log File Retention Policy¶
By default, operation debug log files are deleted automatically after 1 day.
This time period is configurable in
CleanupRules.xml, which is accessible on Private Agents in these default locations:
C:\Program Files\Jitterbit Agent
CleanupRules.xml file, you can edit this cleanup rule to change the operation debug log retention policy:
Debug Log File Contents¶
Operation debug log files contain debug messages for each operation activity and include information that is logged before and after each transformation is executed. Information about other actions such as reading from and writing to the Harmony cache is also included.
These files are typically requested by Jitterbit Support if more information is required during troubleshooting.
Component Input and Output Data¶
Component input and output data is generated when a Cloud Studio operation that has operation debug logging enabled at the operation level is executed on a 10.48 or later Private Agent that also has the default configuration settings. Input and output data are available only for activities and transformations used as operation steps.
The generation of component input and output data is unaffected by the Agent Group setting Enable Cloud Logging (see Agents > Agent Groups). Component input and output data will be logged to the Harmony cloud even if cloud logging is disabled.
To disable generation of component input and output data on an Agent Group, in the Private Agent configuration file under the
[VerboseLogging] section, set
Input and Output Data Access¶
Component input and output data is accessed from the Cloud Studio operation log screen. Within the operation log screen, each operation row can be expanded to show additional rows for each operation step. Each operation step has an expand or collapse icon ( , ) in the Input/Output column, which can be clicked to show or hide the input and output data for that individual operation step. Each input and output log entry is limited to 100MB. If the data for an individual input or output log entry exceeds 100MB, no data will be displayed.
- Copy: Click the copy icon to copy the log data to your clipboard. When clicked, a clipboard icon is temporarily displayed.
- Download: Click the download icon
_outputas appropriate. to download the input or output data. The file is named with the operation step name followed by
Input and Output Data Retention Policy¶
Component input and output data is retained for 7 days by Jitterbit Harmony.
Input and Output Data Contents¶
Component input and output data is generated for certain steps of an operation. The data is appropriate to the function of a step. The input is the structure that the component consumes, while the output is the structure that the component produces.
Input and output data is generated for these components used as operation steps:
- Activities: Input and output data and any related information for the execution of the activity. Some activities may have multiple input and output files.
- Transformations: Input and output data for the execution of the transformation.
Input and output data is not applicable to scripts when they are used as operation steps. Script content, such as that produced by the
WritetoOperationLog function, is displayed in the log messages of an operation log.
Input and Output Data Troubleshooting¶
Agent logs related to the input and output data should not normally need to be accessed. If you think there may be an issue with generating the input and output data, you can check the Verbose Log Shipper service log files on a Private Agent:
The Verbose Log Shipper service can be restarted by restarting a Private Agent.
On Linux Private Agents, you can also disable and re-enable this service using these Jitterbit command line options:
These options can also be viewed using