Hey there. I’m not aware of hooks truncating output, but your two comparisons are likely because of the difference in the sensuctl command you used. Note in Hooks reference - Sensu Docs, the command is: sensuctl event info <entity_name> <check_name> --format wrapped-json. Specifically, it’s using wrapped-json as the output. What do you get if you change your output format?
I did try the different output formats, but I think in this case, my confusion is simply the difference of output from event vs the configuration of the event itself.
Still I’m not able to understand where the truncate happens - seems like a default Go configuration maybe ? Or a etcd or postgresql limit ?
It seems I was mistaken about how the sensu hooks are defined through puppet.
I was running a command directly in the check_hooks definition, but a sensu_hook definition was required, so the check_hook points to a sensu_hook.
After this, there is no issue with output truncating from the hook
Still, the issue persists with the check output, even with max_output_size defined at 4096, the output is truncated at 255.
Still this would be great to figure out why this is, so if you could point me in any direction, it would be greatly appreciated !