mirror of https://github.com/OISF/suricata
json dns: do not use array to output answer
Without this patch DNS answers for a single query are stored in a single json event. The result is an array in the object like this one: {"type":"answer","id":45084,"rrname":"s-static.ak.facebook.com","rrtype":"CNAME","ttl":734}, {"type":"answer","id":45084,"rrname":"s-static.ak.facebook.com.edgekey.net","rrtype":"CNAME","ttl":1710}, This type of output is not well supported in logstash. It is displayed as it is written above and it is not possible to query the fields. I think the reason is that this is not logical if we consider search query. For example if we search for "rrname" equal "s-static.ak.facebook.com" we got one entry with two values in it. That's against the logic of event. Furthermore, if we want to get a complete query, we can used the id. This patch splits the answer part in mulitple message. The result is then accepted by logstash and fields can be queried easily.pull/810/head
parent
eab0b7fae9
commit
93a84180dc
Loading…
Reference in New Issue