Raccogli i log delle istanze AWS EC2
Parser Version: 1.0
Questo documento spiega come configurare i log delle istanze AWS EC2 in Google Security Operations per il monitoraggio e l'analisi. Il parser estrae i dati dai log JSON della prenotazione delle istanze, ristruttura e rinomina i campi per conformarsi all'UDM, gestendo vari tipi di dati e strutture nidificate, tra cui interfacce di rete, gruppi e tag, generando al contempo relazioni e metadati degli asset. Esegue anche la gestione degli errori e l'eliminazione dei messaggi JSON non corretti.
Prima di iniziare
- Assicurati di avere un'istanza Google SecOps.
- Assicurati di disporre dell'accesso con privilegi ad AWS.
Configura AWS IAM e S3
- Crea un bucket Amazon S3 seguendo questa guida dell'utente: Creazione di un bucket.
- Salva il nome e la regione del bucket per utilizzarli in un secondo momento.
- Crea un utente seguendo questa guida dell'utente: Creazione di un utente IAM.
- Seleziona l'utente creato.
- Seleziona la scheda Credenziali di sicurezza.
- Fai clic su Crea chiave di accesso nella sezione Chiavi di accesso.
- Seleziona Servizio di terze parti come Caso d'uso.
- Fai clic su Avanti.
- (Facoltativo) Aggiungi un tag di descrizione.
- Fai clic su Crea chiave di accesso.
- Fai clic su Download CSV file (Scarica file CSV) per salvare la Access Key (Chiave di accesso) e la Secret Access Key (Chiave di accesso segreta) per un utilizzo successivo.
- Fai clic su Fine.
- Seleziona la scheda Autorizzazioni.
- Fai clic su Aggiungi autorizzazioni nella sezione Policy sulle autorizzazioni.
- Seleziona Aggiungi autorizzazioni.
- Seleziona Collega direttamente le policy
- Cerca e seleziona la policy AmazonS3FullAccess.
- Fai clic su Avanti.
- Fai clic su Aggiungi autorizzazioni.
Configura EC2 per inviare i log a CloudWatch Logs
Utilizza SSH per connetterti all'istanza EC2, fornendo la coppia di chiavi per l'autenticazione.
ssh -i your-key.pem ec2-user@your-ec2-public-ipInstalla l'agente CloudWatch Logs:
- Per installare l'agente CloudWatch Logs su Amazon Linux, utilizza il seguente comando:
sudo yum install -y awslogs- Per installare l'agente CloudWatch Logs su Ubuntu, utilizza il seguente comando:
sudo apt-get install -y awslogsApri il file di configurazione di CloudWatch Logs:
sudo vi /etc/awslogs/awslogs.confCrea uno script che recuperi questi metadati dell'istanza di log e li scriva in un file:
#!/bin/bash echo "Architecture: $(curl -s http://169.254.169.254/latest/meta-data/architecture)" >> /var/log/instance_metadata.log echo "AmiLaunchIndex: $(curl -s http://169.254.169.254/latest/meta-data/ami-launch-index)" >> /var/log/instance_metadata.log echo "BootMode: $(curl -s http://169.254.169.254/latest/meta-data/boot-mode)" >> /var/log/instance_metadata.logSalva lo script come
/etc/init.d/metadata_script.shed eseguilo all'avvio dell'istanza utilizzando crontab orc.local.Apri il file di configurazione per l'agente CloudWatch Logs:
sudo vi /etc/awslogs/awslogs.confAggiungi quanto segue al file di configurazione:
[/var/log/messages] file = /var/log/messages log_group_name = /ec2/system/logs log_stream_name = {instance_id} [/var/log/secure] file = /var/log/secure log_group_name = /ec2/security/logs log_stream_name = {instance_id} [/var/log/auth.log] file = /var/log/auth.log log_group_name = /ec2/auth/logs log_stream_name = {instance_id} [/var/log/httpd/access_log] file = /var/log/httpd/access_log log_group_name = /ec2/application/apache/access_logs log_stream_name = {instance_id} [/var/log/httpd/error_log] file = /var/log/httpd/error_log log_group_name = /ec2/application/apache/error_logs log_stream_name = {instance_id}Salva la configurazione ed esci dall'editor.
Avvia l'agente CloudWatch Logs:
- Su Amazon Linux:
sudo service awslogs start- Su Ubuntu:
sudo service awslogs startVerifica che l'agente sia in esecuzione:
sudo service awslogs status
Configura le autorizzazioni IAM per Lambda e S3
Nella console AWS IAM, crea un nuovo ruolo IAM con le seguenti autorizzazioni:
logs:PutSubscriptionFilterlogs:DescribeLogGroupslogs:GetLogEventss3:PutObject
Associa questo ruolo alla tua funzione Lambda che esporterà i log in S3.
Configura Lambda per esportare i log in S3
Vai alla console Lambda e crea una nuova funzione.
import boto3 import gzip from io import BytesIO s3 = boto3.client('s3') logs = boto3.client('logs') def lambda_handler(event, context): log_group = event['logGroup'] log_stream = event['logStream'] log_events = logs.get_log_events( logGroupName=log_group, logStreamName=log_stream, startFromHead=True ) log_data = "\n".join([event['message'] for event in log_events['events']]) # Compress and upload to S3 compressed_data = gzip.compress(log_data.encode('utf-8')) s3.put_object( Bucket='your-s3-bucket-name', Key='logs/ec2-log.gz', Body=compressed_data ) ```- Sostituisci
your-s3-bucket-namecon il nome effettivo del tuo bucket S3.
- Sostituisci
Collega il ruolo IAM alla funzione Lambda creata in precedenza.
Nella console CloudWatch, vai alla sezione Log.
Seleziona il gruppo di log, ad esempio
/ec2/system/logs.Fai clic su Azioni > Crea filtro di sottoscrizione.
Imposta la destinazione sulla funzione Lambda creata in precedenza.
Configura un feed in Google SecOps per importare i log delle istanze AWS EC2
- Vai a Impostazioni > Gestione dei dati > Feed. Se utilizzi una piattaforma solo SIEM, vai a Impostazioni > Feed.
- Fai clic su Aggiungi nuovo feed di notizie.
- Nel campo Nome feed, inserisci un nome per il feed, ad esempio Log delle istanze AWS EC2.
- Seleziona Amazon S3 V2 come Tipo di origine.
- Seleziona AWS EC2 Instance come Log type.
- Fai clic su Avanti.
Specifica i valori per i seguenti parametri di input:
- URI S3: l'URI del bucket.
s3://your-log-bucket-name/- Sostituisci
your-log-bucket-namecon il nome effettivo del bucket.
- Sostituisci
Opzioni di eliminazione dell'origine: seleziona l'opzione di eliminazione in base alle tue preferenze.
Età massima del file: includi i file modificati nell'ultimo numero di giorni. Il valore predefinito è 180 giorni.
ID chiave di accesso: la chiave di accesso utente con accesso al bucket S3.
Chiave di accesso segreta: la chiave segreta dell'utente con accesso al bucket S3.
Asset namespace: lo spazio dei nomi dell'asset.
Etichette di importazione: l'etichetta da applicare agli eventi di questo feed.
- URI S3: l'URI del bucket.
Fai clic su Avanti.
Controlla la nuova configurazione del feed di notizie nella schermata Finalizza, quindi fai clic su Invia.
Formati dei log delle istanze AWS EC2 supportati
Il parser delle istanze AWS EC2 supporta i log in formato JSON.
Log di esempio delle istanze AWS EC2 supportate
JSON:
{ "GroupSet": null, "InstancesSet": [ { "AmiLaunchIndex": 0, "Architecture": "x86_64", "BlockDeviceMapping": [ { "DeviceName": "", "Ebs": null } ], "BootMode": "", "CapacityReservationID": "", "CapacityReservationSpecification": null, "ClientToken": "xMcwG14507example", "CPU": { "AmdSevSnp": "", "CoreCount": 1, "ThreadsPerCore": 1 }, "CurrentInstanceBootMode": "", "DNSName": "ec2-198-51-100-1.eu-west-1.compute.amazonaws.com", "EbsOptimized": false, "ElasticGpuAssociationSet": null, "ElasticInferenceAcceleratorAssociationSet": null, "EnaSupport": false, "EnclaveOption": false, "GroupSet": [ { "GroupID": "sg-c1234567", "GroupName": "SecurityGroup1" } ], "HibernationOptions": false, "Hypervisor": "xen", "IamInstanceProfile": { "Arn": "arn:aws:iam::123456789012:instance-profile/AdminRole", "ID": "ABCDEFGHIJKLMNOP123AB" }, "ImageID": "ami-abc32ddd", "InstanceID": "i-1234567890abcdef0", "InstanceLifecycle": "", "InstanceState": { "Code": 16, "Name": "running" }, "InstanceType": "t2.micro", "IPAddress": "198.51.100.1", "Ipv6Address": "", "KernelID": "", "KeyName": "my_keypair", "LaunchTime": "2018-05-08T16:46:19.000Z", "LicenseSet": null, "MaintenanceOptions": "", "MetadataOptions": { "HTTPEndpoint": "", "HTTPProtocolIpv6": "", "HTTPPutResponseHopLimit": 0, "HTTPTokens": "", "InstanceMetadataTags": "", "State": "" }, "Monitoring": { "State": "disabled" }, "NetworkInterfaceSet": [ { "Association": { "CarrierIP": "", "CustomerOwnedIP": "", "IPOwnerID": "amazon", "PublicDNSName": "ec2-198-51-100-1.eu-west-1.compute.amazonaws.com", "PublicIP": "198.51.100.1" }, "Attachment": { "AttachmentID": "eni-attach-12345abc", "AttachTime": "2018-05-08T16:46:19.000Z", "DeleteOnTermination": true, "DeviceIndex": 0, "NetworkCardIndex": 0, "Status": "attached" }, "Description": "Primary network interface", "GroupSet": [ { "GroupID": "sg-a1234567", "GroupName": "SecurityGroup1" } ], "InterfaceType": "", "Ipv4PrefixSet": null, "Ipv6AddressesSet": [ { "Ipv6Address": "d9a3:d3b1:03e0:0279:5196:3b5c:242b:10da", "IsPrimaryIpv6": false } ], "Ipv6PrefixSet": null, "MacAddress": "a2-d4-a6-24-12-f4", "NetworkInterfaceID": "eni-551ba033", "OwnerID": "123456789012", "PrivateDNSName": "ip-198-51-100-1.eu-west-1.compute.internal", "PrivateIPAddress": "198.51.100.1", "PrivateIPAddressesSet": [ { "Association": { "CarrierIP": "", "CustomerOwnedIP": "", "IPOwnerID": "amazon", "PublicDNSName": "ec2-198-51-100-1.eu-west-1.compute.amazonaws.com", "PublicIP": "198.51.100.1" }, "Primary": true, "PrivateDNSName": "ip-198-51-100-1.eu-west-1.compute.internal", "PrivateIPAddress": "198.51.100.1" } ], "SourceDestCheck": true, "Status": "in-use", "SubnetID": "subnet-56f5f633", "VpcID": "vpc-11112222" } ], "OutpostArn": "", "Placement": { "Affinity": "", "AvailabilityZone": "eu-west-1c", "GroupID": "", "GroupName": "", "HostID": "", "HostResourceGroupArn": "", "PartitionNumber": 0, "SpreadDomain": "", "Tenancy": "default" }, "Platform": "", "PlatformDetails": "", "PrivateDNSName": "ip-198-51-100-1.eu-west-1.compute.internal", "PrivateDNSNameOptions": null, "PrivateIPAddress": "198.51.100.1", "ProductCodes": null, "RamdiskID": "", "Reason": "", "RootDeviceName": "/dev/xvda", "RootDeviceType": "ebs", "SourceDestCheck": true, "SpotInstanceRequestID": "", "SriovNetSupport": "", "StateReason": "", "SubnetID": "subnet-56f5f633", "TagSet": [ { "Key": "Name", "Value": "Server_1" } ], "TpmSupport": "", "UsageOperation": "", "UsageOperationUpdateTime": "", "VirtualizationType": "hvm", "VpcID": "vpc-11112222" } ], "OwnerID": "123456789012", "RequesterID": "", "ReservationID": "r-1234567890abcdef0" }
Tabella di mappatura UDM
| Campo log | Mappatura UDM | Logica |
|---|---|---|
Architecture |
entity.entity.asset.attribute.labels.key=instances_set_architecture, entity.entity.asset.attribute.labels.value |
Il valore viene preso direttamente dal campo Instances.Architecture nel log non elaborato. |
AmiLaunchIndex |
entity.entity.asset.attribute.labels.key=instances_set_ami_launch_index, entity.entity.asset.attribute.labels.value |
Il valore viene preso direttamente dal campo Instances.AmiLaunchIndex nel log non elaborato. |
BlockDeviceMapping.Ebs.AttachTime |
entity.entity.resource_ancestors.attribute.labels.key=instances_set_block_device_mapping_ebs_attach_time, entity.entity.resource_ancestors.attribute.labels.value |
Il valore viene preso da Instances.BlockDeviceMapping.Ebs.AttachTime. |
BlockDeviceMapping.Ebs.DeleteOnTermination |
entity.entity.resource_ancestors.attribute.labels.key=instances_set_block_device_mapping_ebs_delete_on_termination, entity.entity.resource_ancestors.attribute.labels.value |
Il valore viene preso da Instances.BlockDeviceMapping.Ebs.DeleteOnTermination. |
BlockDeviceMapping.Ebs.Status |
entity.entity.resource_ancestors.attribute.labels.key=instances_set_block_device_mapping_ebs_volume_status, entity.entity.resource_ancestors.attribute.labels.value |
Il valore viene preso da Instances.BlockDeviceMapping.Ebs.Status. |
BlockDeviceMapping.Ebs.VolumeID |
entity.entity.resource_ancestors.product_object_id, entity.entity.resource_ancestors.resource_type=VOLUME |
Il valore viene preso da Instances.BlockDeviceMapping.Ebs.VolumeID. |
BlockDeviceMapping.Name |
entity.entity.resource_ancestors.attribute.labels.key=instances_set_block_device_mapping_device_name, entity.entity.resource_ancestors.attribute.labels.value |
Il valore viene preso da Instances.BlockDeviceMapping.Name. |
BootMode |
entity.entity.asset.attribute.labels.key=instances_set_boot_mode, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.BootMode. |
CapacityReservationID |
entity.entity.asset.attribute.labels.key=instances_set_capacity_reservation_id, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.CapacityReservationID. |
CapacityReservationSpecification.CapacityReservationPreference |
entity.entity.asset.attribute.labels.key=instances_set_capacity_reservation_specification_capacity_reservation_preference, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.CapacityReservationSpecification.CapacityReservationPreference. |
CapacityReservationSpecification.CapacityReservationTarget.CapacityReservationID |
entity.entity.asset.attribute.labels.key=instances_set_capacity_reservation_specification_capacity_reservation_target_capacity_reservation_id, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.CapacityReservationSpecification.CapacityReservationTarget.CapacityReservationID. |
CapacityReservationSpecification.CapacityReservationTarget.CapacityReservationResourceGroupArn |
entity.entity.resource_ancestors.name, entity.entity.resource_ancestors.resource_subtype=Capacity Reservation Arn |
Il valore viene preso da Instances.CapacityReservationSpecification.CapacityReservationTarget.CapacityReservationResourceGroupArn. |
ClientToken |
entity.entity.asset.attribute.labels.key=instances_set_client_token, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.ClientToken. |
CPU.AmdSevSnp |
entity.entity.asset.attribute.labels.key=instances_set_cpu_options_amd_sev_snp, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.CPU.AmdSevSnp. |
CPU.CoreCount |
entity.entity.asset.hardware.cpu_number_cores |
Il valore viene preso da Instances.CPU.CoreCount. |
CPU.ThreadsPerCore |
entity.entity.asset.attribute.labels.key=instances_set_cpu_options_threads_per_core, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.CPU.ThreadsPerCore. |
CurrentInstanceBootMode |
entity.entity.asset.attribute.labels.key=instances_set_current_instance_boot_mode, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.CurrentInstanceBootMode. |
DNSName |
entity.entity.network.dns_domain |
Il valore viene preso da Instances.DNSName. |
EbsOptimized |
entity.entity.asset.attribute.labels.key=instances_set_ebs_optimized, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.EbsOptimized. |
ElasticGpuAssociationSet.ElasticGpuAssociationID |
entity.entity.asset.attribute.labels.key=instances_set_elastic_gpu_association_set_elastic_gpu_association_id, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.ElasticGpuAssociationSet.ElasticGpuAssociationID. |
ElasticGpuAssociationSet.ElasticGpuAssociationState |
entity.entity.asset.attribute.labels.key=instances_set_elastic_gpu_association_set_elastic_gpu_association_state, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.ElasticGpuAssociationSet.ElasticGpuAssociationState. |
ElasticGpuAssociationSet.ElasticGpuAssociationTime |
entity.entity.asset.attribute.labels.key=instances_set_elastic_gpu_association_set_elastic_gpu_association_time, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.ElasticGpuAssociationSet.ElasticGpuAssociationTime. |
ElasticGpuAssociationSet.ElasticGpuID |
entity.entity.asset.attribute.labels.key=instances_set_elastic_gpu_association_set_elastic_gpu_id, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.ElasticGpuAssociationSet.ElasticGpuID. |
ElasticInferenceAcceleratorAssociationSet.ElasticInferenceAcceleratorArn |
entity.entity.resource_ancestors.name, entity.entity.resource_ancestors.resource_subtype=Elastic Interface Accelerator Arn |
Il valore viene preso da Instances.ElasticInferenceAcceleratorAssociationSet.ElasticInferenceAcceleratorArn. |
ElasticInferenceAcceleratorAssociationSet.ElasticInferenceAcceleratorAssociationID |
entity.entity.resource_ancestors.attribute.labels.key=instances_set_elastic_inference_accelerator_association_set_elastic_inference_accelerator_association_id, entity.entity.resource_ancestors.attribute.labels.value |
Il valore viene preso da Instances.ElasticInferenceAcceleratorAssociationSet.ElasticInferenceAcceleratorAssociationID. |
ElasticInferenceAcceleratorAssociationSet.ElasticInferenceAcceleratorAssociationState |
entity.entity.resource_ancestors.attribute.labels.key=instances_set_elastic_inference_accelerator_association_set_elastic_inference_accelerator_association_state, entity.entity.resource_ancestors.attribute.labels.value |
Il valore viene preso da Instances.ElasticInferenceAcceleratorAssociationSet.ElasticInferenceAcceleratorAssociationState. |
ElasticInferenceAcceleratorAssociationSet.ElasticInferenceAcceleratorAssociationTime |
entity.entity.resource_ancestors.attribute.labels.key=instances_set_elastic_inference_accelerator_association_set_elastic_inference_accelerator_association_time, entity.entity.resource_ancestors.attribute.labels.value |
Il valore viene preso da Instances.ElasticInferenceAcceleratorAssociationSet.ElasticInferenceAcceleratorAssociationTime. |
EnaSupport |
entity.entity.asset.attribute.labels.key=instances_set_ena_support, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.EnaSupport. |
EnclaveOptions.Enabled |
entity.entity.asset.attribute.labels.key=instances_set_enclave_options_enabled, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.EnclaveOptions.Enabled. |
GroupSet.GroupID |
entity.entity.group.product_object_id, entity.entity.group.attribute.labels.key=group_set_group_id, entity.entity.group.attribute.labels.value, entity.entity.group.attribute.labels.key=instances_set_group_set_group_id, entity.entity.group.attribute.labels.value, entity.entity.group.attribute.labels.key=instances_set_network_interface_set_group_set_group_id, entity.entity.group.attribute.labels.value |
Il valore viene preso da GroupSet.GroupID. Il primo GroupID nell'array è mappato a entity.entity.group.product_object_id. I valori GroupID successivi vengono mappati come etichette. |
GroupSet.GroupName |
entity.entity.group.group_display_name, entity.entity.group.attribute.labels.key=group_set_group_name, entity.entity.group.attribute.labels.value, entity.entity.group.attribute.labels.key=instances_set_group_set_group_name, entity.entity.group.attribute.labels.value, entity.entity.group.attribute.labels.key=instances_set_network_interface_set_group_set_group_name, entity.entity.group.attribute.labels.value |
Il valore viene preso da GroupSet.GroupName. Il primo GroupName nell'array è mappato a entity.entity.group.group_display_name. I valori GroupName successivi vengono mappati come etichette. |
HibernationOptions |
entity.entity.asset.attribute.labels.key=instances_set_hibernation_options, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.HibernationOptions. |
HibernationOptions.Configured |
entity.entity.asset.attribute.labels.key=instances_set_hibernation_options_configured, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.HibernationOptions.Configured. |
Hypervisor |
entity.entity.asset.attribute.labels.key=instances_set_hypervisor, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.Hypervisor. |
IamInstanceProfile.Arn |
entity.entity.resource_ancestors.name, entity.entity.resource_ancestors.resource_subtype=Instance Profile Arn |
Il valore viene preso da Instances.IamInstanceProfile.Arn. |
IamInstanceProfile.ID |
entity.entity.resource_ancestors.product_object_id |
Il valore viene preso da Instances.IamInstanceProfile.ID. |
ImageID |
entity.entity.resource_ancestors.product_object_id, entity.entity.resource_ancestors.resource_type=IMAGE |
Il valore viene preso da Instances.ImageID. |
InstanceID |
entity.metadata.product_entity_id, entity.entity.asset.asset_id |
Il valore viene preso da Instances.InstanceID. |
InstanceLifecycle |
entity.entity.asset.attribute.labels.key=instances_set_instance_lifecycle, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.InstanceLifecycle. |
InstanceState.Code |
entity.entity.asset.attribute.labels.key=instances_set_instance_state_code, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.InstanceState.Code. |
InstanceState.Name |
entity.entity.asset.deployment_status |
Il valore è derivato da Instances.InstanceState.Name. Se il valore è running, il campo UDM è impostato su ACTIVE. Se il valore è shutting-down o stopping, il campo UDM è impostato su PENDING_DECOMMISSION. Se il valore è stopped o terminated, il campo UDM è impostato su DECOMMISSIONED. |
InstanceType |
entity.entity.asset.category |
Il valore viene preso da Instances.InstanceType. |
IPAddress |
entity.entity.asset.ip |
Il valore viene preso da Instances.IPAddress. |
Ipv6Address |
entity.entity.asset.ip |
Il valore viene preso da Instances.Ipv6Address. |
KernelID |
entity.entity.asset.attribute.labels.key=instances_set_kernel_id, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.KernelID. |
KeyName |
entity.entity.asset.attribute.labels.key=instances_set_key_name, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.KeyName. |
LaunchTime |
entity.metadata.creation_timestamp |
Il valore viene preso da Instances.LaunchTime. |
LicenseSet.LicenseConfigurationArn |
entity.entity.resource_ancestors.name, entity.entity.resource_ancestors.resource_subtype=License Configuration Arn |
Il valore viene preso da Instances.LicenseSet.LicenseConfigurationArn. |
MaintenanceOptions |
entity.entity.asset.attribute.labels.key=instances_set_maintenance_options_auto_recovery, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.MaintenanceOptions. |
MetadataOptions.HTTPEndpoint |
entity.entity.asset.attribute.labels.key=instances_set_metadata_options_http_endpoint, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.MetadataOptions.HTTPEndpoint. |
MetadataOptions.HTTPProtocolIpv6 |
entity.entity.asset.attribute.labels.key=instances_set_metadata_options_http_protocol_ipv6, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.MetadataOptions.HTTPProtocolIpv6. |
MetadataOptions.HTTPPutResponseHopLimit |
entity.entity.asset.attribute.labels.key=instances_set_metadata_options_http_put_response_hop_limit, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.MetadataOptions.HTTPPutResponseHopLimit. |
MetadataOptions.HTTPTokens |
entity.entity.asset.attribute.labels.key=instances_set_metadata_options_http_tokens, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.MetadataOptions.HTTPTokens. |
MetadataOptions.InstanceMetadataTags |
entity.entity.asset.attribute.labels.key=instances_set_metadata_options_instance_metadata_tags, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.MetadataOptions.InstanceMetadataTags. |
MetadataOptions.State |
entity.entity.asset.attribute.labels.key=instances_set_metadata_options_state, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.MetadataOptions.State. |
Monitoring.State |
entity.entity.asset.attribute.labels.key=instances_set_monitoring_state, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.Monitoring.State. |
NetworkInterfaceSet.Association.CarrierIP |
entity.entity.asset.nat_ip |
Il valore viene preso da Instances.NetworkInterfaceSet.Association.CarrierIP. |
NetworkInterfaceSet.Association.CustomerOwnedIP |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_association_customer_owned_ip, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.Association.CustomerOwnedIP. |
NetworkInterfaceSet.Association.IPOwnerID |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_association_ip_owner_id, entity.entity.asset.attribute.labels.value, entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_private_ip_addresses_set_association_ip_owner_id, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.Association.IPOwnerID. |
NetworkInterfaceSet.Association.PublicDNSName |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_association_public_dns_name, entity.entity.asset.attribute.labels.value, entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_private_ip_addresses_set_association_public_dns_name, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.Association.PublicDNSName. |
NetworkInterfaceSet.Association.PublicIP |
entity.entity.asset.ip |
Il valore viene preso da Instances.NetworkInterfaceSet.Association.PublicIP. |
NetworkInterfaceSet.Attachment.AttachTime |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_attachment_attach_time, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.Attachment.AttachTime. |
NetworkInterfaceSet.Attachment.AttachmentID |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_attachment_attachment_id, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.Attachment.AttachmentID. |
NetworkInterfaceSet.Attachment.DeleteOnTermination |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_attachment_delete_on_termination, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.Attachment.DeleteOnTermination. |
NetworkInterfaceSet.Attachment.DeviceIndex |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_attachment_device_index, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.Attachment.DeviceIndex. |
NetworkInterfaceSet.Attachment.NetworkCardIndex |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_attachment_network_card_index, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.Attachment.NetworkCardIndex. |
NetworkInterfaceSet.Attachment.Status |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_attachment_status, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.Attachment.Status. |
NetworkInterfaceSet.Description |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_description, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.Description. |
NetworkInterfaceSet.GroupSet.GroupID |
entity.entity.group.attribute.labels.key=instances_set_network_interface_set_group_set_group_id, entity.entity.group.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.GroupSet.GroupID. |
NetworkInterfaceSet.GroupSet.GroupName |
entity.entity.group.attribute.labels.key=instances_set_network_interface_set_group_set_group_name, entity.entity.group.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.GroupSet.GroupName. |
NetworkInterfaceSet.InterfaceType |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_interface_type, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.InterfaceType. |
NetworkInterfaceSet.Ipv6AddressesSet.Ipv6Address |
entity.entity.asset.ip |
Il valore viene preso da Instances.NetworkInterfaceSet.Ipv6AddressesSet.Ipv6Address. |
NetworkInterfaceSet.Ipv6AddressesSet.IsPrimaryIpv6 |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_ipv6_addresses_set_is_primary_ipv6, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.Ipv6AddressesSet.IsPrimaryIpv6. |
NetworkInterfaceSet.MacAddress |
entity.entity.asset.mac |
Il valore viene preso da Instances.NetworkInterfaceSet.MacAddress. |
NetworkInterfaceSet.NetworkInterfaceID |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_network_interface_id, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.NetworkInterfaceID. |
NetworkInterfaceSet.OwnerID |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_owner_id, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.OwnerID. |
NetworkInterfaceSet.PrivateDNSName |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_private_dns_name, entity.entity.asset.attribute.labels.value, entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_private_ip_addresses_set_private_dns_name, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.PrivateDNSName. |
NetworkInterfaceSet.PrivateIPAddress |
entity.entity.asset.ip |
Il valore viene preso da Instances.NetworkInterfaceSet.PrivateIPAddress. |
NetworkInterfaceSet.PrivateIPAddressesSet.Primary |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_private_ip_addresses_set_primary, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.PrivateIPAddressesSet.Primary. |
NetworkInterfaceSet.PrivateIPAddressesSet.PrivateIPAddress |
entity.entity.asset.ip |
Il valore viene preso da Instances.NetworkInterfaceSet.PrivateIPAddressesSet.PrivateIPAddress. |
NetworkInterfaceSet.SourceDestCheck |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_source_dest_check, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.SourceDestCheck. |
NetworkInterfaceSet.Status |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_status, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.Status. |
NetworkInterfaceSet.SubnetID |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_subnet_id, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.SubnetID. |
NetworkInterfaceSet.VpcID |
entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_vpc_id, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.NetworkInterfaceSet.VpcID. |
OutpostArn |
entity.relations.entity.asset.product_object_id |
Il valore viene preso da Instances.OutpostArn. |
Placement.Affinity |
entity.entity.asset.attribute.labels.key=instances_set_placement_affinity, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.Placement.Affinity. |
Placement.AvailabilityZone |
entity.entity.asset.attribute.cloud.availability_zone |
Il valore viene preso da Instances.Placement.AvailabilityZone. |
Placement.GroupID |
entity.entity.group.attribute.labels.key=instances_set_placement_group_id, entity.entity.group.attribute.labels.value |
Il valore viene preso da Instances.Placement.GroupID. |
Placement.GroupName |
entity.entity.group.attribute.labels.key=instances_set_placement_group_name, entity.entity.group.attribute.labels.value |
Il valore viene preso da Instances.Placement.GroupName. |
Placement.HostID |
entity.relations.entity.asset.asset_id |
Il valore viene preso da Instances.Placement.HostID. |
Placement.HostResourceGroupArn |
entity.relations.entity.asset.attribute.labels.key=instances_set_placement_host_resource_group_arn, entity.relations.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.Placement.HostResourceGroupArn. |
Placement.PartitionNumber |
entity.entity.asset.attribute.labels.key=instances_set_placement_partition_number, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.Placement.PartitionNumber. |
Placement.SpreadDomain |
entity.entity.asset.attribute.labels.key=instances_set_placement_spread_domain, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.Placement.SpreadDomain. |
Placement.Tenancy |
entity.entity.asset.attribute.labels.key=instances_set_placement_tenancy, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.Placement.Tenancy. |
PlatformDetails |
entity.entity.asset.attribute.labels.key=instances_set_platform_details, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.PlatformDetails. |
PrivateDNSName |
entity.entity.network.dns.questions.name |
Il valore viene preso da Instances.PrivateDNSName. |
PrivateDNSNameOptions.EnableResourceNameDnsAAAARecord |
entity.entity.network.dns.questions.type |
Se il valore è true, il campo UDM è impostato su 28. |
PrivateDNSNameOptions.EnableResourceNameDnsARecord |
entity.entity.network.dns.questions.type |
Se il valore è true, il campo UDM è impostato su 1. |
PrivateDNSNameOptions.HostnameType |
entity.entity.asset.attribute.labels.key=instances_set_private_dns_name_options_hostname_type, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.PrivateDNSNameOptions.HostnameType. |
PrivateIPAddress |
entity.entity.asset.ip |
Il valore viene preso da Instances.PrivateIPAddress. |
ProductCodes.ProductCode |
entity.entity.asset.attribute.labels.key=instances_set_product_codes_product_code, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.ProductCodes.ProductCode. |
ProductCodes.Type |
entity.entity.asset.attribute.labels.key=instances_set_product_codes_type, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.ProductCodes.Type. |
RamdiskID |
entity.entity.asset.attribute.labels.key=instances_set_ramdisk_id, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.RamdiskID. |
Reason |
entity.entity.asset.attribute.labels.key=instances_set_reason, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.Reason. |
ReservationID |
entity.additional.fields.key=reservation_id, entity.additional.fields.value.string_value |
Il valore viene preso da ReservationID. |
RequesterID |
entity.additional.fields.key=requester_id, entity.additional.fields.value.string_value |
Il valore viene preso da RequesterID. |
RootDeviceName |
entity.entity.asset.attribute.labels.key=instances_set_root_device_name, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.RootDeviceName. |
RootDeviceType |
entity.entity.asset.attribute.labels.key=instances_set_root_device_type, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.RootDeviceType. |
SourceDestCheck |
entity.entity.asset.attribute.labels.key=instances_set_source_dest_check, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.SourceDestCheck. |
SpotInstanceRequestID |
entity.entity.asset.attribute.labels.key=instances_set_spot_instance_request_id, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.SpotInstanceRequestID. |
SriovNetSupport |
entity.entity.asset.attribute.labels.key=instances_set_sriov_net_support, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.SriovNetSupport. |
StateReason |
entity.entity.asset.attribute.labels.key=instances_set_state_reason_code, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.StateReason. |
StateReason.Code |
entity.entity.asset.attribute.labels.key=instances_set_state_reason_code, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.StateReason.Code. |
StateReason.Message |
entity.entity.asset.attribute.labels.key=instances_set_state_reason_message, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.StateReason.Message. |
SubnetID |
entity.entity.resource_ancestors.product_object_id, entity.entity.resource_ancestors.resource_type=SUBNET |
Il valore viene preso da Instances.SubnetID. |
TagSet.Key |
entity.entity.asset.attribute.labels.key |
Il valore viene preso da Instances.TagSet.Key. |
TagSet.Value |
entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.TagSet.Value. |
TpmSupport |
entity.entity.asset.attribute.labels.key=instances_set_tpm_support, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.TpmSupport. |
UsageOperation |
entity.entity.asset.attribute.labels.key=instances_set_usage_operation, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.UsageOperation. |
UsageOperationUpdateTime |
entity.entity.asset.attribute.labels.key=instances_set_usage_operation_update_time, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.UsageOperationUpdateTime. |
VirtualizationType |
entity.entity.asset.attribute.labels.key=instances_set_virtualization_type, entity.entity.asset.attribute.labels.value |
Il valore viene preso da Instances.VirtualizationType. |
VpcID |
entity.entity.resource_ancestors.product_object_id, entity.entity.resource_ancestors.resource_type=VPC_NETWORK |
Il valore viene preso da Instances.VpcID. |
collection_time |
entity.metadata.collected_timestamp |
Il valore viene preso direttamente dal campo collection_time nel log non elaborato. Impostato come hardcoded su AMAZON_WEB_SERVICES. Impostato come hardcoded su AMAZON_WEB_SERVICES per i tipi di risorse IMAGE, VOLUME, SUBNET, VPC_NETWORK, Instance Profile Arn, Capacity Reservation Arn, Elastic Interface Accelerator Arn e License Configuration Arn. Impostato come hardcoded su SERVER. Impostato come hardcoded su Amazon EC2. Impostato come hardcoded su AWS. Impostato come hardcoded su ASSET se Instances.Placement.HostID è presente e non vuoto. Impostato come hardcoded su EXECUTES se Instances.Placement.HostID è presente e non vuoto. Impostato come hardcoded su ASSET. |
Log delle modifiche
Visualizza il log delle modifiche per questo parser
Hai bisogno di ulteriore assistenza? Ricevi risposte dai membri della community e dai professionisti di Google SecOps.