https://github.com/osquery/osquery logo
#kolide
Title
# kolide
s

stefanmaerz

04/08/2020, 2:32 PM
Reading through docs trying to figure this out: Does fleetctl have language bindings? Or would I need to shell out if I wanted to use fleetctl from a python script? Or would it just be easier to hit the Fleet API directly?
s

sundsta

04/08/2020, 3:23 PM
I’m not aware of any bindings. The tool itself is of course open source though, which should make it easy to port to another language if needed
šŸ‘ 1
z

zwass

04/08/2020, 3:39 PM
If you are using Go, you can use the same client library that
fleetctl
does (https://github.com/kolide/fleet/blob/master/server/service/client.go). You can certainly hit the API directly from any language. IMO it would definitely be worth considering whether shelling out to
fleetctl
is your easiest option if you are using Python.
āž• 1
šŸ‘ 1
s

SK

04/08/2020, 6:43 PM
@stefanmaerz If you're thinking of Python I have some code that might give you a quick start.
šŸ‘ 1
s

stefanmaerz

04/08/2020, 6:50 PM
@Sk Yes!! That would be awesome! Right now a dev on my team is working to reverse the API
@zwass Thanks Zach!! Appreciate the advice! Very helpful. My working on this very much dislikes Go, so I'm not sure he'll bite at that.
s

SK

04/08/2020, 6:53 PM
@stefanmaerz I have it in a Jupyter Notebook, will that be OK?
s

stefanmaerz

04/08/2020, 6:57 PM
Yep!
s

SK

04/08/2020, 7:23 PM
DM
d

defensivedepth

04/09/2020, 11:36 PM
@SK Would you mind sharing it with me as well? šŸ™‚
s

SK

04/10/2020, 7:29 AM
Hey @defensivedepth, sure, no problem!
2 Views