Manage Entities

An entity is a resource in Log Analytics which is used to reference the real asset on your on-premises host or virtual host. After you discover this entity in Log Analytics, you can associate it with a log source and enable log collection from it.

Useful Resources:

To perform other actions on the entity, in the Entities page, select the compartment of your entity and narrow down your search for your entity by selecting the entity type in the search bar. After identifying your entity, click Actions icon Actions icon in the row of your entity:

  • View Details: The entity page is displayed. In the Entity Information tab, you can view the entity type, its OCID, creation type, the compartment that it resides in, the details of the management agent, the time that it was created and last updated, and the associated sources. Click the Edit icon Edit icon next to Management Agent to update the agent information. In the Tags tab, you can view the tags associated with the entity. Click Add Tag button to add one.

    Further, click the Edit, Move Resource, Add Tags, or Delete button in the entity page to perform the corresponding actions.

  • Edit: The Edit Entity dialog box is displayed. Here, to add more properties, you can click Add button in the Properties section and specify the Property Name and Property Value. Click Save Changes.

    These properties are used to locate the log files location. For example, in an Oracle Database entity type, you must provide path values for properties such as ADR_HOME, ORACLE_HOME, and INSTALL_HOME.

  • Add Data: The Configure Agent-based Log Collection or Configure log collection for OCI resources dialog box is displayed depending on whether the entity is an OCI resource or non-OCI resource. The wizards assists you in associating the entity with a suitable source. This sets up the parser and filter to process the log records flowing from the entity.

  • Upload Files: The Upload Files wizard opens. Follow the steps in the wizard to upload log files associated with the entity. This is particularly useful to upload a batch of files that are not part of continuous log collection or those that belong to a time range outside of what is defined for collection.

  • Copy OCID: The OCID of the entity resource is copied. You can use it to refer to this resource anywhere in Oracle Cloud Infrastructure.

  • Move Resource: The Move Resource to a Different Compartment dialog box is displayed. From the options, select the compartment to which you want to move the entity and click Move Resource.

  • Add Tag: See Add Tags to Log Analytics Resources.

  • Delete: You may have to delete some of your old or unused entities to conform to the service limits of Log Analytics. See Limits by Service in Oracle Cloud Infrastructure Documentation. To delete the entity, confirm in the Delete Entity dialog box.

    Note

    The entities that you deleted using the entity delete API may reappear in your entity listing in any of the following circumstances:

    • New logs are pushed for the deleted entities through Service Connector Hub or Object Storage collections.

    • New EM Bridge uploads contain the deleted entity.

Manage Entity Preferences

You can manage the default preferences for entities through entityLifecycle preference group. Create IAM policies to allow users to read, update, and delete entity preferences.

For details about preference groups and IAM policies for preferences, see Log Analytics Service Operation Preferences and Allow Users to Specify Tag Preferences.

For REST API to manage preferences in Oracle Log Analytics, see Log Analytics API Reference.

Topics:

Entity Preferences in entityLifecycle Preference Group

Feature Preference Name Allowed Values Details
Lifecycle of Agent and Host entities in Oracle Log Analytics AUTO_CREATE_AGENT_HOST_ENTITY TRUE / FALSE

TRUE (Default value): The entities for Agent and Host are created automatically.

FALSE: The entities for Agent And Host are not created.

AUTO_DELETE_AGENT_ENTITY TRUE / FALSE

FALSE (Default value): Agent entities are not deleted when the Management Agents are deleted.

TRUE: Agent entities are deleted when Management Agents are deleted.

AUTO_DELETE_HOST_ENTITY TRUE / FALSE

FALSE (Default value): Host entities are not deleted when the Management Agents are deleted.

TRUE: Host entities are deleted when Management Agents are deleted.

Deletion of auto-created entities for logs received via Service Connector Hub in Oracle Log Analytics AUTO_DELETE_SCH_ENTITIES_OF_TYPES Comma Separated List of supported entity types / _ALL_ / <empty> (no value set)

<empty> (no value set) (Default value): Entities are not deleted.

_ALL_: Entities are deleted for all supported types when the underlying OCI resources are deleted.

Comma separated list: Entities are deleted for the specified entity types when the underlying OCI resources are deleted.

Custom naming for auto created Host entities in Oracle Log Analytics USE_CUSTOM_HOSTNAME_FROM_TAG <tagKeyName> from Agent's free form tags

By default, Oracle Log Analytics uses the host name as provided by the Management Agent resource when creating the Host entity. To override this host name, a free form tag can be set in the Management Agent resource. The value of the tag is used to override the name used for the Host entity. If the preference is set and the free form tag is not set in the Management Agent resource, then the Host entity is not created. The value of the tag is either prefixed (default) or suffixed to the host name as provided by the agent.

Example: If the hostname reported by Management Agent service is myhost.example.com and if the preference USE_CUSTOM_HOSTNAME_FROM_TAG is set to tagForHostNameOverride and the Management Agent resource has a free form tag tagForHostNameOverride set to value -customEnvName-, then the name of the Log Analytics Host entity is either -customEnvName-myhost.example.com or myhost.example.com-customEnvName- depending on whether Prefix or Suffix option is specified for the USE_CUSTOM_HOSTNAME_POSITION preference.

USE_CUSTOM_HOSTNAME_POSITION Prefix / Suffix See details for USE_CUSTOM_HOSTNAME_FROM_TAG.
Entity types for which Tag preferences are applicable ENTITY_TYPES_FOR_TAG_PREFERENCES Comma separated list of supported Log Analytics entity types / _ALL_ Tag preferences are applied to the entity types mentioned in the preference list.
Set tags for entities auto-created using Service Connector SCH_ENTITIES_TAGS_VALUES Comma separated list of supported defined tags*, _ALL_

Comma separated list of supported defined tags can be provided as follows: Namespace1.*, Namespace2.Tag2, Namespace3.Tag3='Override value' with the preference taking precedence from right to left. In the above example, Namespace3.Tag3='Override value' takes precedence over Namespace2.Tag2 and so on.

  • Namespace1.*: Copy all the defined tags matching Namespace1
  • Namespace2.Tag2: Copy all Tag2 from Namespace2
  • Namespace3.Tag3='Override value': Override Tag3 value from Namespace3 with new value
  • _ALL_: Copy all the defined tags from the resource

Any other namespaces/tags from TagDefaults or resource are not added. The tag preferences are applicable during entity creation only for the entity types specified in the ENTITY_TYPES_FOR_TAG_PREFERENCES preference.

Set tags for auto-created host and agent entities HOST_AGENT_ENTITIES_TAGS_VALUES Comma separated list of supported defined tags*, _ALL_

Comma separated list of supported defined tags can be provided as follows: Namespace1.*, Namespace2.Tag2, Namespace3.Tag3='Override value' with the preference taking precedence from right to left. In the above example, Namespace3.Tag3='Override value' takes precedence over Namespace2.Tag2 and so on.

  • Namespace1.*: Copy all the defined tags matching Namespace1
  • Namespace2.Tag2: Copy all Tag2 from Namespace2
  • Namespace3.Tag3='Override value': Override Tag3 value from Namespace3 with new value
  • _ALL_: Copy all the defined tags from the resource

Any other namespaces/tags from TagDefaults or resource are not added. The tag preferences are applicable during entity creation only for the entity types specified in the ENTITY_TYPES_FOR_TAG_PREFERENCES preference.

Entity types for AUTO_DELETE_SCH_ENTITIES_OF_TYPES and ENTITY_TYPES_FOR_TAG_PREFERENCES Preferences

Log Analytics Entity Type OCI Resource
oci_agcs_instance Access Governance
oci_adm_remediation_recipe ADM Remediation Recipe
oci_analytics_cloud_instance Analytics Cloud Instance
oci_api_gateway API Gateway
oci_apm_domain APM Domain
oci_cloud_guard Cloud Guard Data Source
oci_ccc_infrastructure Compute Cloud@Customer
omc_kubernetes_cluster Container Engine For Kubernetes
oci_data_flow_application Data Flow (Application)
oci_dis_workspace Data Integration Workspace
oci_datascience_job Data Science Jobs
oci_datascience_model_deployment Data Science Model Deployments
oci_datascience_pipeline Data Science Pipeline
(Pipeline resource entity is created for Pipeline run resource ) Data Science Pipeline Run
oci_datascience_mlapplication_instance Data Science ML Application Instance
oci_devops_build_pipeline Devops Build Pipeline
oci_devops_build_pipeline_stage Devops Build Pipeline Stage
oci_devops_build_run Devops Build Run
oci_devops_deployment Devops Deployment
oci_devops_deployment_pipeline Devops Deployment Pipeline
oci_devops_deployment_stage Devops Deployment Stage
oci_dnsserver DNS Resolver
oci_emailsender Email Delivery Service
oci_event_rule Events Service
oci_functions_app Functions (FN App)
oci_functions_function Functions (FN Function)
omc_oracle_goldengate_deployment GoldenGate Deployment
oci_compute_instance Instance
oci_vpn_ipsectunnel IPSec Tunnel
oci_load_balancer Load Balancer
oci_media_workflow Media Workflow
oci_media_workflow_job Media Workflow Job
oci_network_firewall Network Firewall
oci_os_bucket Object Storage (Bucket)
oci_cache OCI Cache
omc_postgresql_db OCI Database with PostgreSQL
omc_opc_ics_instance OIC Instance
oci_opctloperatorcontrol Operator Control
omc_postgresql_db PostgreSQL Database System
oci_service_connector Service Connector
oci_vault Vault
oci_vcn OCI Virtual Cloud Network (VCN)
oci_vcn_subnet OCI VCN Subnet
oci_vcn_vnic OCI VCN Virtual Network Interface Card (VNIC)
oci_webappfirewall Web Application Firewall

Additional entity types supported in ENTITY_TYPES_FOR_TAG_PREFERENCES Preference

Log Analytics Entity Type Resource
omc_mgmt_agent Management Agent
omc_host_aix Host (AIX)
omc_host_linux Host (Linux)
omc_host_solaris Host (Solaris)
omc_host_windows Host (Windows)