you can use osqueryd to log the results of an quer...
# general
s
you can use osqueryd to log the results of an query to disk, if that answers your question