Debugging TICKscript - Where (else?) do errors go?

I’m still getting started with TICKscript so maybe this is obvious, but when the kapacitor show command shows the DOT graph and a node contains an indication that errors happened, where can I find anything more about what the errors were?

I’m looking in /var/log/kapacitor/kapacitor.log, where I see that records are being added to the database. But when I add one that increments the errors count for a node in the DOT graph, I’m not seeing anything logged to the kapacitor.log. Where else could I find out what’s wrong?


ID: simple
Error:
Template:
Type: stream
Status: enabled
Executing: true
Created: 06 Sep 17 10:58 CDT
Modified: 11 Sep 17 15:45 CDT
LastEnabled: 11 Sep 17 15:45 CDT
Databases Retention Policies: ["apimonitor"."autogen"]
TICKscript:
var data = stream
    |from()
        .measurement('api_detail')

var total = data
    |count('tr-error')

var error = data
    |where(lambda: "tr-error" == 'true')
    |count('tr-error')
    |join(total)
        .fill(0)
        .as('errors', 'totals')
    |eval(lambda: "tr-errors.count" / "totals.count")
        .as('value')
    |alert()
        .id('An id thrown in for good measure')
        .message('message is {{index .Fields "value"}}')
        .crit(lambda: TRUE)
        .log('/tmp/alert.log')
    |httpOut('top10')
    |log()

DOT:
digraph simple {
graph [throughput="0.00 points/s"];

stream0 [avg_exec_time_ns="0s" errors="0" working_cardinality="0" ];
stream0 -> from1 [processed="1"];

from1 [avg_exec_time_ns="0s" errors="0" working_cardinality="0" ];
from1 -> where3 [processed="1"];
from1 -> count2 [processed="1"];

where3 [avg_exec_time_ns="0s" errors="0" working_cardinality="1" ];
where3 -> count4 [processed="1"];

count4 [avg_exec_time_ns="0s" errors="1" working_cardinality="0" ];
count4 -> join6 [processed="0"];

count2 [avg_exec_time_ns="0s" errors="1" working_cardinality="0" ];
count2 -> join6 [processed="0"];

join6 [avg_exec_time_ns="0s" errors="0" working_cardinality="0" ];
join6 -> eval7 [processed="0"];

eval7 [avg_exec_time_ns="0s" errors="0" working_cardinality="0" ];
eval7 -> alert8 [processed="0"];

alert8 [alerts_triggered="0" avg_exec_time_ns="0s" crits_triggered="0" errors="0" infos_triggered="0" oks_triggered="0" warns_triggered="0" working_cardinality="0" ];
alert8 -> http_out9 [processed="0"];

http_out9 [avg_exec_time_ns="0s" errors="0" working_cardinality="0" ];
http_out9 -> log10 [processed="0"];

log10 [avg_exec_time_ns="0s" errors="0" working_cardinality="0" ];
}