falcon_host_details

command
v0.2.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 9 Imported by: 0

README

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'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL