that question has a pretty broad answer depending ...
# general
b
that question has a pretty broad answer depending on what you're trying to do, but you can take a look at some examples in https://github.com/kolide/launcher/tree/master/pkg/osquery/table and check out https://github.com/kolide/osquery-go if you're into golang