Skip to content

Latest commit

 

History

History

falcon_host_details

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Falcon Host Details

Stand-alone tool that uses Host API to query all the host details and output JSON to the stdout. This tool can be used together with JSON parsing tools like jq in order to build reports of your liking.

Installation

go get github.com/crowdstrike/gofalcon/examples/falcon_host_details

Exemplary Usage

Get full details of all the hosts

$ FALCON_CLIENT_ID="abc" FALCON_CLIENT_SECRET="XYZ" FALCON_CLOUD=us-1 \
      falcon_host_details

Get total number of hosts

falcon_host_details | jq length

List hostnames of all hosts

falcon_host_details  | jq 'map(.hostname)'

List hosts and agent versions as key-value dictionary

falcon_host_details  | jq -r ' map( { (.hostname) : .agent_version } ) | add'