inliniac/suricata — pull request #910 by MattCarothers (2014-03-27 18:23:12+00:00)
Title: Adds payload field to JSON output

The first part of this patch adds a new utility function that prints characters to a buffer similar to PrintRawDataToBuffer, but without the offset hex. Printable characters, linefeeds, and carriage returns go into the buffer unchanged. All other characters go in as "."

The new function is then used to add a "payload" field to the JSON alert output.