<style> .release-box { height: 30px; width: 100px; padding-top: 8px; text-align: center; border-radius: 5px; font-weight: bold; background-color: #d4af37; border-color: #FCE28A; } .release-box:hover { cursor: hand; cursor: pointer; opacity: .9; } </style> <meta name="robots" content="noindex"> <div class="release-box"> <a href="https://docs.perspectium.com/display/gold" style="text-decoration: none; color: #FFFFFF; display: block;"> Gold </a> </div> |
Users can specify a log directory for messages that have caused errors. These logs contain the messages' data to help you review and recover records.
First, you will need to either set up DataSync for ServiceNow manually or install the DataSync for ServiceNow app.
To add an Error Directory follow these steps:
|
Place the <error_directory> directive within the <task> brackets. Defining it explicitly (or avoiding it) for each task. You can do this if you want to configure different error directories per task / queue.
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> <config> <agent> <subscribe> <task> <task_name>example_subscribe_foo</task_name> <message_connection user="example" password="XXXX" queue="YYYY">amqps://example.perspectium.net</message_connection> <instance_connection user="foo" password="XXXX">https://foo.service-now.com</instance_connection> <handler>com.perspectium.replicator.sql.SQLSubscriber</handler> .... <error_directory>../errorsFoo</error_directory> </task> <task> <task_name>example_subscribe_bar</task_name> <message_connection user="example" password="XXXX" queue="ZZZZ">amqps://example.perspectium.net</message_connection> <instance_connection user="bar" password="XXXX">https://bar.service-now.com</instance_connection> <handler>com.perspectium.replicator.sql.SQLSubscriber</handler> .... <error_directory>../errorsBar</error_directory> </task> </subscribe> <max_reads_per_connect>2000</max_reads_per_connect> <polling_interval>5</polling_interval> </agent> </config> |
Place the <error_directory> directive within the <agent> level to have all the tasks inherit this behavior. You can do this if you just want one single error directory for all your tasks / queues.
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> <config> <agent> <subscribe> <task> <task_name>example_subscribe_foo</task_name> <message_connection user="example" password="XXXX" queue="YYYY">amqps://example.perspectium.net</message_connection> <instance_connection user="foo" password="XXXX">https://foo.service-now.com</instance_connection> <handler>com.perspectium.replicator.sql.SQLSubscriber</handler> .... </task> <task> <task_name>example_subscribe_bar</task_name> <message_connection user="example" password="XXXX" queue="ZZZZ">amqps://example.perspectium.net</message_connection> <instance_connection user="bar" password="XXXX">https://bar.service-now.com</instance_connection> <handler>com.perspectium.replicator.sql.SQLSubscriber</handler> .... </task> </subscribe> <error_directory>../errors</error_directory> <max_reads_per_connect>2000</max_reads_per_connect> <polling_interval>5</polling_interval> </agent> </config> |