Skip to content

Instantly share code, notes, and snippets.

@cloudnull
Created January 31, 2019 17:23
Show Gist options
  • Select an option

  • Save cloudnull/7ae86c39b5027b32492561c36df8d9b7 to your computer and use it in GitHub Desktop.

Select an option

Save cloudnull/7ae86c39b5027b32492561c36df8d9b7 to your computer and use it in GitHub Desktop.
quick env tools test
# osquery
## DOCS - https://osquery.readthedocs.io/en/stable/
osqueryi "select * from deb_packages where name like 'linux-image%';"
osqueryi "select * from os_version;"
# fleet
## DOCS - https://github.com/kolide/fleet/tree/master/docs
fleetctl query --query "select * from deb_packages where name like 'linux-image%';" --labels='All Hosts'
fleetctl query --query "select * from os_version;" --hosts=933256-compute006.watchtower.openstack.cas.org | python -m json.tool
# skydive
## DOCS - http://skydive.network/documentation/api-gremlin
skydive client status --username skydive --password sFgAWN6gFHR71khQJWcpmrEI7qBiPPs7
skydive client query "G.V().Has('Name', 'bond0', 'Type', 'bond').Out()" --username skydive --password sFgAWN6gFHR71khQJWcpmrEI7qBiPPs7
# elasticsearch
## DOCS - https://www.elastic.co/guide/en/elasticsearch/reference
curl 127.0.0.1:9200/_cat/indices?v
curl 127.0.0.1:9200/_cluster/health?pretty=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment