SensorGroupingTags are locally stored tags on the Falcon sensor that persist across sensor reinstalls and are synchronized with the cloud. These cmdlets use Real-time Response to manage tags via scripts executed on the host.For cloud-managed FalconGroupingTags, see Devices.
Get-FalconSensorTag
Display SensorGroupingTags assigned to hosts.Host identifier(s) to retrieve sensor tags fromAliases:
ids, device_id, host_ids, aidHosts: Read
Examples
Output
Returns objects with the following properties:cid- Customer IDdevice_id- Host identifiertags- Comma-separated list of SensorGroupingTags (without theSensorGroupingTags/prefix)
Add-FalconSensorTag
Add SensorGroupingTags to hosts using Real-time Response.SensorGroupingTag value(s) to addTags will be appended to any existing tags. Use
Note: The
Set-FalconSensorTag to overwrite existing tags.Valid characters: Letters, numbers, hyphens, underscores, forward slashesNote: The
SensorGroupingTags/ prefix is automatically handledAliases: TagsAdd command request to the offline queue if the host is not onlineDefault:
$falseHost identifier(s) to add tags toAliases:
ids, device_id, host_ids, aidHosts: Read, Sensor update policies: Write, Real time response: Read, Real time response (admin): Write
Examples
Return Values
Returns an object with the following properties:cid- Customer IDdevice_id- Host identifiertags- Updated comma-separated list of tagsoffline_queued- Boolean indicating if command was queuedsession_id- RTR session identifiercloud_request_id- Request identifierstatus- Operation status (TAG_ADDED,TAG_NOT_ADDED,PENDING_QUEUE,HOST_OFFLINE_AND_NOT_QUEUED, etc.)
This cmdlet uses Real-time Response to execute scripts on the host. The operation requires an active RTR session or the ability to queue commands for offline hosts.
Remove-FalconSensorTag
Remove SensorGroupingTags from hosts using Real-time Response.SensorGroupingTag value(s) to removeWhen provided, only specified tags are removed and others remain. If no tags are provided, all existing tags will be removed.Valid characters: Letters, numbers, hyphens, underscores, forward slashes
Note: The
Note: The
SensorGroupingTags/ prefix is automatically handledAliases: TagsAdd command request to the offline queue if the host is not onlineDefault:
$falseHost identifier(s) to remove tags fromAliases:
ids, device_id, host_ids, aidHosts: Read, Sensor update policies: Write, Real time response: Read, Real time response (admin): Write
Examples
Return Values
Returns an object with the following properties:cid- Customer IDdevice_id- Host identifiertags- Updated comma-separated list of remaining tagsoffline_queued- Boolean indicating if command was queuedsession_id- RTR session identifiercloud_request_id- Request identifierstatus- Operation status (TAG_REMOVED,TAG_NOT_REMOVED,NO_TAG_SET,TAG_NOT_PRESENT, etc.)
Set-FalconSensorTag
Set SensorGroupingTags on hosts using Real-time Response (overwrites existing tags).SensorGroupingTag value(s) to setProvided tags will overwrite any existing tags. To append to existing tags, use
Note: The
Add-FalconSensorTag.Valid characters: Letters, numbers, hyphens, underscores, forward slashesNote: The
SensorGroupingTags/ prefix is automatically handledAliases: TagsAdd command request to the offline queue if the host is not onlineDefault:
$falseHost identifier(s) to set tags onAliases:
ids, device_id, host_ids, aidHosts: Read, Sensor update policies: Write, Real time response: Read, Real time response (admin): Write
Examples
Return Values
Returns an object with the following properties:cid- Customer IDdevice_id- Host identifiertags- New comma-separated list of tagsoffline_queued- Boolean indicating if command was queuedsession_id- RTR session identifiercloud_request_id- Request identifierstatus- Operation status (TAG_SET,TAG_NOT_SET,PENDING_QUEUE,HOST_OFFLINE_AND_NOT_QUEUED, etc.)
Uninstall-FalconSensor
Uninstall the Falcon sensor from a host using Real-time Response.Add command request to the offline queue if the host is not onlineDefault:
$falseInclude additional host properties in the responseValid values:
agent_version, cid, external_ip, first_seen, hostname, last_seen, local_ip, mac_address, os_build, os_version, platform_name, product_type, product_type_desc, serial_number, system_manufacturer, system_product_name, tagsHost identifier to uninstall sensor from (single host per request)Aliases:
HostId, device_id, host_ids, aidHosts: Read, Sensor update policies: Write, Real time response: Read, Real time response (admin): Write
Examples
Return Values
Returns an object with the following properties:cid- Customer IDdevice_id- Host identifierstatus- Uninstall status message- Additional properties based on
Includeparameter
The uninstall operation automatically retrieves the maintenance token if uninstall protection is enabled. For hosts in maintenance mode, the operation uses the maintenance token. The operation is executed via Real-time Response scripts specific to the host’s operating system.
Tag Type Comparison
PSFalcon supports two types of host tags:| Feature | FalconGroupingTags | SensorGroupingTags |
|---|---|---|
| Management | Cloud API-based | Real-time Response scripts |
| Storage | Cloud-based | Local on sensor |
| Cmdlets | Add-FalconGroupingTagRemove-FalconGroupingTag | Add-FalconSensorTagRemove-FalconSensorTagSet-FalconSensorTagGet-FalconSensorTag |
| Permissions | Hosts: Write | Hosts: ReadSensor update policies: WriteRTR: ReadRTR (Admin): Write |
| Use Cases | Quick tagging Cloud-managed | Persistent tagging Survives reinstalls |
| Requirements | API access | Active RTR session or offline queue |