Listing Sightings and Getting Their Details
View resource profiles and their key attributes in Cloud Guard to quickly identify the highest priority events.
Prerequisite: Enable the OCI Threat Detector recipe in at least one Cloud Guard target that's defined in your environment and contains the root compartment.
- To create a target and add the recipe, see Creating an OCI Target.Note
When you create a target, Cloud Guard requires an Activity Detector Recipe and a Configuration Detector Recipe to be attached. If you don't want to enable those detectors on the target, you can remove them after you finish creating the target. See Editing an OCI Target and Its Attached Recipes. - To add the OCI Threat Detector recipe to an existing target, see Editing an OCI Target and Its Attached Recipes.
After the preceding prerequisite is met, Cloud Guard begins a learning period. This learning period varies in length from a few hours to a few days, depending on the sighting type. Cloud Guard doesn't start monitoring to detect threats until the learning period ends. If no suspicious activity is occurring, you still see no threat information on the Threat monitoring page.
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Sightings
Use the oci cloud-guard sighting get command and required parameters to get a specific sighting:
oci cloud-guard sighting get --sighting-id <sighting_ocid> [OPTIONS]
Use the oci cloud-guard sighting-summary list-sightings command and required parameters to list all sightings for a compartment:
oci cloud-guard sighting-summary list-sightings --compartment-id, -c <compartment_ocid> [OPTIONS]
Sighting Endpoints
Use the oci cloud-guard sighting-endpoint-summary list-sighting-endpoints command and required parameters to list endpoints for a specific sighting:
oci cloud-guard sighting-endpoint-summary list-sighting-endpoints --sighting-id <sighting_ocid> [OPTIONS]
Impacted Resources
Use the oci cloud-guard sighting-summary list-sightings command and required parameters to list all impacted resources for sightings for a sighting:
oci cloud-guard sighting-impacted-resource-summary list-sighting-impacted-resources --sighting-id <sighting_ocid> [OPTIONS]
Sightings
Run the GetSighting operation to get a specific sighting.
Run the ListSightings operation to list all sightings for a compartment.
Sighting Endpoints
Run the ListSightingEndpoints operation to list endpoints for a specific sighting.
Impacted Resources
Run the ListSightingImpactedResources operation to list all impacted resources for sightings for a compartment.