On Dec 7, 2016, at 1:17 PM, Alex Hall 
<ah...@autodist.com<mailto:ah...@autodist.com>> wrote:
I guess that's it for now. I'd like a way to watch the different scripts do 
their thing for a single transaction, and I need to better understand how the 
different scripts decide when to fire and when to stay quiet. Thanks as always!

The debug log will do just that.  It will tell you what scrip is being skipped 
or is triggering for what ticket and transaction.

Example of a ticket being created:
[16981] [Mon Oct 17 16:03:31 2016] [debug]: About to prepare scrips for 
transaction #3644426 (/opt/rt4/sbin/../lib/RT/Transaction.pm:187)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Found 20 scrips for 
TransactionCreate stage with applicable type(s) Create for txn #3644426 on 
ticket #20035600 (/opt/rt4/sbin/../lib/RT/Scrips.pm:495)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #18 because it isn't 
applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #20 because it isn't 
applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #42 because it isn't 
applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #21 because it isn't 
applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #24 because it isn't 
applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #25 because it isn't 
applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #78 because it isn't 
applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: About to commit scrips for 
transaction #3644426 (/opt/rt4/sbin/../lib/RT/Transaction.pm:210)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Committing scrip #13 on txn 
#3644426 of ticket #20035600 (/opt/rt4/sbin/../lib/RT/Scrips.pm:306)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Committing scrip #16 on txn 
#3644426 of ticket #20035600 (/opt/rt4/sbin/../lib/RT/Scrips.pm:306)

Example of a custom field change (different ticket than above):
[16980] [Mon Oct 17 16:03:55 2016] [debug]: About to prepare scrips for 
transaction #3644476 (/opt/rt4/sbin/../lib/RT/Transaction.pm:187)
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Found 8 scrips for 
TransactionCreate stage with applicable type(s) CustomField for txn #3644476 on 
ticket #20035308 (/opt/rt4/sbin/../lib/RT/Scrips.pm:495)
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #21 because it isn't 
applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #24 because it isn't 
applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #25 because it isn't 
applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #31 because it isn't 
applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #32 because it isn't 
applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #74 because it isn't 
applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #78 because it isn't 
applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)

--
Landon Stewart
Lead Analyst - Abuse and Security Management
INTERNAP ®
📧 lstew...@internap.com<mailto:lstew...@internap.com>
🌍 www.internap.com<http://www.internap.com>

---------
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Los Angeles - January 9-11 2017

Reply via email to