איסוף יומנים של מכונות AWS EC2

גרסת המנתח: 1.0

נתמך ב:

במאמר הזה מוסבר איך להגדיר יומנים של מכונות AWS EC2 ב-Google Security Operations למעקב ולניתוח. המנתח מחלץ נתונים מיומני JSON של הקצאת מכונות, משנה את המבנה של השדות ואת השמות שלהם כדי להתאים אותם ל-UDM, מטפל בסוגי נתונים שונים ובמבנים בתצוגת עץ, כולל ממשקי רשת, קבוצות ותגים, וגם יוצר קשרים בין נכסים ומטא-נתונים. הוא גם מטפל בשגיאות ומוחק הודעות JSON פגומות.

לפני שמתחילים

  • מוודאים שיש לכם מכונת Google SecOps.
  • מוודאים שיש לכם גישה עם הרשאות ל-AWS.

הגדרת AWS IAM ו-S3

  1. יוצרים קטגוריה של Amazon S3 לפי המדריך למשתמש: יצירת קטגוריה.
  2. שומרים את שם הקטגוריה ואת האזור שלה לשימוש מאוחר יותר.
  3. יוצרים משתמש לפי המדריך למשתמש: יצירת משתמש IAM.
  4. בוחרים את המשתמש שנוצר.
  5. לוחצים על הכרטיסייה פרטי כניסה מאובטחים.
  6. בקטע Access Keys, לוחצים על Create Access Key.
  7. בוחרים באפשרות שירות של צד שלישי בתור תרחיש לדוגמה.
  8. לוחצים על הבא.
  9. אופציונלי: מוסיפים תג תיאור.
  10. לוחצים על יצירת מפתח גישה.
  11. לוחצים על Download CSV file כדי לשמור את Access Key ואת Secret Access Key לשימוש מאוחר יותר.
  12. לוחצים על סיום.
  13. לוחצים על הכרטיסייה הרשאות.
  14. בקטע מדיניות הרשאות, לוחצים על הוספת הרשאות.
  15. לוחצים על הוספת הרשאות.
  16. בוחרים באפשרות Attach policies directly.
  17. מחפשים את המדיניות AmazonS3FullAccess ובוחרים בה.
  18. לוחצים על הבא.
  19. לוחצים על הוספת הרשאות.

הגדרת EC2 לשליחת יומנים אל CloudWatch Logs

  1. משתמשים ב-SSH כדי להתחבר למכונת ה-EC2, ומספקים את זוג המפתחות לאימות.

    ssh -i your-key.pem ec2-user@your-ec2-public-ip
    
  2. מתקינים את הסוכן של CloudWatch Logs:

    • כדי להתקין את סוכן Logging של CloudWatch ב-Amazon Linux, משתמשים בפקודה הבאה:
    sudo yum install -y awslogs
    
    • כדי להתקין את הסוכן של CloudWatch Logs ב-Ubuntu, משתמשים בפקודה הבאה:
    sudo apt-get install -y awslogs
    
  3. פותחים את קובץ התצורה של CloudWatch Logs:

    sudo vi /etc/awslogs/awslogs.conf
    
  4. יוצרים סקריפט שמאחזר את המטא-נתונים של המכונה ביומן וכותב אותם לקובץ:

    #!/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.log
    
  5. שומרים את הסקריפט בתור /etc/init.d/metadata_script.sh ומריצים אותו בהפעלת המכונה באמצעות crontab או rc.local.

  6. פותחים את קובץ התצורה של סוכן CloudWatch Logs:

    sudo vi /etc/awslogs/awslogs.conf
    
  7. מוסיפים את הטקסט הבא לקובץ התצורה:

    [/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}
    
  8. שומרים את ההגדרה ויוצאים מהכלי לעריכת טקסט.

  9. מפעילים את סוכן CloudWatch Logs:

    • ב-Amazon Linux:
    sudo service awslogs start
    
    • ב-Ubuntu:
    sudo service awslogs start
    
  10. מוודאים שה-agent פועל:

    sudo service awslogs status
    

הגדרת הרשאות IAM ל-Lambda ול-S3

  1. במסוף AWS IAM, יוצרים תפקיד IAM חדש עם ההרשאות הבאות:

    • logs:PutSubscriptionFilter
    • logs:DescribeLogGroups
    • logs:GetLogEvents
    • s3:PutObject
  2. מצרפים את התפקיד הזה לפונקציית Lambda שתייצא את היומנים ל-S3.

הגדרת Lambda לייצוא יומנים ל-S3

  1. נכנסים למסוף Lambda ויוצרים פונקציה חדשה.

    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
        )
      ```
    
    • מחליפים את your-s3-bucket-name בשם האמיתי של הקטגוריה ב-S3.
  2. מצרפים את תפקיד ה-IAM לפונקציית Lambda שנוצרה קודם.

  3. במסוף CloudWatch, נכנסים לקטע Logs.

  4. בוחרים את קבוצת היומנים, לדוגמה /ec2/system/logs.

  5. לוחצים על Actions > Create Subscription Filter.

  6. מגדירים את היעד לפונקציית Lambda שנוצרה קודם.

הגדרת פיד ב-Google SecOps כדי להטמיע יומנים של מכונות AWS EC2

  1. עוברים אל הגדרות > ניהול נתונים > פידים. אם אתם משתמשים בפלטפורמה של SIEM בלבד, עוברים אל הגדרות > פידים.
  2. לוחצים על הוספת פיד חדש.
  3. בשדה Feed name, מזינים שם לפיד, לדוגמה AWS EC2 Instance Logs.
  4. בוחרים באפשרות Amazon S3 V2 בתור סוג המקור.
  5. בוחרים באפשרות AWS EC2 Instance בתור Log type.
  6. לוחצים על הבא.
  7. מציינים ערכים לפרמטרים הבאים של הקלט:

    • ‫S3 URI: ה-URI של הקטגוריה.
      • s3://your-log-bucket-name/
        • מחליפים את your-log-bucket-name בשם האמיתי של הקטגוריה.
    • אפשרויות למחיקת המקור: בוחרים את אפשרות המחיקה הרצויה.

    • גיל הקובץ המקסימלי: כולל קבצים ששונו במספר הימים האחרונים. ברירת המחדל היא 180 ימים.

    • מזהה מפתח הגישה: מפתח הגישה של המשתמש עם גישה לקטגוריית S3.

    • מפתח גישה סודי: המפתח הסודי של המשתמש עם גישה לקטגוריית S3.

    • מרחב השמות של הנכס: מרחב השמות של הנכס.

    • תוויות הטמעה: התווית שתתווסף לאירועים מהפיד הזה.

  8. לוחצים על הבא.

  9. בודקים את הגדרות הפיד החדש במסך סיום ולוחצים על שליחה.

פורמטים נתמכים של יומני מכונות AWS EC2

מנתח הנתונים של AWS EC2 Instances תומך ביומנים בפורמט JSON.

יומנים לדוגמה של מכונות AWS EC2 נתמכות

  • ‫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"
    }
    

טבלת מיפוי UDM

שדה ביומן מיפוי UDM Logic (פונקציה לוגית)
Architecture entity.entity.asset.attribute.labels.key=instances_set_architecture, entity.entity.asset.attribute.labels.value הערך נלקח ישירות מהשדה Instances.Architecture ביומן הגולמי.
AmiLaunchIndex entity.entity.asset.attribute.labels.key=instances_set_ami_launch_index, entity.entity.asset.attribute.labels.value הערך נלקח ישירות מהשדה Instances.AmiLaunchIndex ביומן הגולמי.
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 הערך נלקח מ-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 הערך נלקח מ-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 הערך נלקח מ-Instances.BlockDeviceMapping.Ebs.Status.
BlockDeviceMapping.Ebs.VolumeID entity.entity.resource_ancestors.product_object_id, entity.entity.resource_ancestors.resource_type=VOLUME הערך נלקח מ-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 הערך נלקח מ-Instances.BlockDeviceMapping.Name.
BootMode entity.entity.asset.attribute.labels.key=instances_set_boot_mode, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.BootMode.
CapacityReservationID entity.entity.asset.attribute.labels.key=instances_set_capacity_reservation_id, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.CapacityReservationID.
CapacityReservationSpecification.CapacityReservationPreference entity.entity.asset.attribute.labels.key=instances_set_capacity_reservation_specification_capacity_reservation_preference, entity.entity.asset.attribute.labels.value הערך נלקח מ-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 הערך נלקח מ-Instances.CapacityReservationSpecification.CapacityReservationTarget.CapacityReservationID.
CapacityReservationSpecification.CapacityReservationTarget.CapacityReservationResourceGroupArn entity.entity.resource_ancestors.name, entity.entity.resource_ancestors.resource_subtype=Capacity Reservation Arn הערך נלקח מ-Instances.CapacityReservationSpecification.CapacityReservationTarget.CapacityReservationResourceGroupArn.
ClientToken entity.entity.asset.attribute.labels.key=instances_set_client_token, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.ClientToken.
CPU.AmdSevSnp entity.entity.asset.attribute.labels.key=instances_set_cpu_options_amd_sev_snp, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.CPU.AmdSevSnp.
CPU.CoreCount entity.entity.asset.hardware.cpu_number_cores הערך נלקח מ-Instances.CPU.CoreCount.
CPU.ThreadsPerCore entity.entity.asset.attribute.labels.key=instances_set_cpu_options_threads_per_core, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.CPU.ThreadsPerCore.
CurrentInstanceBootMode entity.entity.asset.attribute.labels.key=instances_set_current_instance_boot_mode, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.CurrentInstanceBootMode.
DNSName entity.entity.network.dns_domain הערך נלקח מ-Instances.DNSName.
EbsOptimized entity.entity.asset.attribute.labels.key=instances_set_ebs_optimized, entity.entity.asset.attribute.labels.value הערך נלקח מ-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 הערך נלקח מ-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 הערך נלקח מ-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 הערך נלקח מ-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 הערך נלקח מ-Instances.ElasticGpuAssociationSet.ElasticGpuID.
ElasticInferenceAcceleratorAssociationSet.ElasticInferenceAcceleratorArn entity.entity.resource_ancestors.name, entity.entity.resource_ancestors.resource_subtype=Elastic Interface Accelerator Arn הערך נלקח מ-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 הערך נלקח מ-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 הערך נלקח מ-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 הערך נלקח מ-Instances.ElasticInferenceAcceleratorAssociationSet.ElasticInferenceAcceleratorAssociationTime.
EnaSupport entity.entity.asset.attribute.labels.key=instances_set_ena_support, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.EnaSupport.
EnclaveOptions.Enabled entity.entity.asset.attribute.labels.key=instances_set_enclave_options_enabled, entity.entity.asset.attribute.labels.value הערך נלקח מ-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 הערך נלקח מ-GroupSet.GroupID. הערך הראשון של GroupID במערך ממופה אל entity.entity.group.product_object_id. ערכי GroupID הבאים ממופים כתוויות.
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 הערך נלקח מ-GroupSet.GroupName. הערך הראשון של GroupName במערך ממופה אל entity.entity.group.group_display_name. ערכי GroupName הבאים ממופים כתוויות.
HibernationOptions entity.entity.asset.attribute.labels.key=instances_set_hibernation_options, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.HibernationOptions.
HibernationOptions.Configured entity.entity.asset.attribute.labels.key=instances_set_hibernation_options_configured, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.HibernationOptions.Configured.
Hypervisor entity.entity.asset.attribute.labels.key=instances_set_hypervisor, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.Hypervisor.
IamInstanceProfile.Arn entity.entity.resource_ancestors.name, entity.entity.resource_ancestors.resource_subtype=Instance Profile Arn הערך נלקח מ-Instances.IamInstanceProfile.Arn.
IamInstanceProfile.ID entity.entity.resource_ancestors.product_object_id הערך נלקח מ-Instances.IamInstanceProfile.ID.
ImageID entity.entity.resource_ancestors.product_object_id, entity.entity.resource_ancestors.resource_type=IMAGE הערך נלקח מ-Instances.ImageID.
InstanceID entity.metadata.product_entity_id, entity.entity.asset.asset_id הערך נלקח מ-Instances.InstanceID.
InstanceLifecycle entity.entity.asset.attribute.labels.key=instances_set_instance_lifecycle, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.InstanceLifecycle.
InstanceState.Code entity.entity.asset.attribute.labels.key=instances_set_instance_state_code, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.InstanceState.Code.
InstanceState.Name entity.entity.asset.deployment_status הערך נגזר מ-Instances.InstanceState.Name. אם הערך הוא running, שדה ה-UDM מוגדר כ-ACTIVE. אם הערך הוא shutting-down או stopping, שדה ה-UDM מוגדר כ-PENDING_DECOMMISSION. אם הערך הוא stopped או terminated, שדה ה-UDM מוגדר כ-DECOMMISSIONED.
InstanceType entity.entity.asset.category הערך נלקח מ-Instances.InstanceType.
IPAddress entity.entity.asset.ip הערך נלקח מ-Instances.IPAddress.
Ipv6Address entity.entity.asset.ip הערך נלקח מ-Instances.Ipv6Address.
KernelID entity.entity.asset.attribute.labels.key=instances_set_kernel_id, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.KernelID.
KeyName entity.entity.asset.attribute.labels.key=instances_set_key_name, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.KeyName.
LaunchTime entity.metadata.creation_timestamp הערך נלקח מ-Instances.LaunchTime.
LicenseSet.LicenseConfigurationArn entity.entity.resource_ancestors.name, entity.entity.resource_ancestors.resource_subtype=License Configuration Arn הערך נלקח מ-Instances.LicenseSet.LicenseConfigurationArn.
MaintenanceOptions entity.entity.asset.attribute.labels.key=instances_set_maintenance_options_auto_recovery, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.MaintenanceOptions.
MetadataOptions.HTTPEndpoint entity.entity.asset.attribute.labels.key=instances_set_metadata_options_http_endpoint, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.MetadataOptions.HTTPEndpoint.
MetadataOptions.HTTPProtocolIpv6 entity.entity.asset.attribute.labels.key=instances_set_metadata_options_http_protocol_ipv6, entity.entity.asset.attribute.labels.value הערך נלקח מ-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 הערך נלקח מ-Instances.MetadataOptions.HTTPPutResponseHopLimit.
MetadataOptions.HTTPTokens entity.entity.asset.attribute.labels.key=instances_set_metadata_options_http_tokens, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.MetadataOptions.HTTPTokens.
MetadataOptions.InstanceMetadataTags entity.entity.asset.attribute.labels.key=instances_set_metadata_options_instance_metadata_tags, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.MetadataOptions.InstanceMetadataTags.
MetadataOptions.State entity.entity.asset.attribute.labels.key=instances_set_metadata_options_state, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.MetadataOptions.State.
Monitoring.State entity.entity.asset.attribute.labels.key=instances_set_monitoring_state, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.Monitoring.State.
NetworkInterfaceSet.Association.CarrierIP entity.entity.asset.nat_ip הערך נלקח מ-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 הערך נלקח מ-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 הערך נלקח מ-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 הערך נלקח מ-Instances.NetworkInterfaceSet.Association.PublicDNSName.
NetworkInterfaceSet.Association.PublicIP entity.entity.asset.ip הערך נלקח מ-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 הערך נלקח מ-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 הערך נלקח מ-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 הערך נלקח מ-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 הערך נלקח מ-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 הערך נלקח מ-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 הערך נלקח מ-Instances.NetworkInterfaceSet.Attachment.Status.
NetworkInterfaceSet.Description entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_description, entity.entity.asset.attribute.labels.value הערך נלקח מ-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 הערך נלקח מ-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 הערך נלקח מ-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 הערך נלקח מ-Instances.NetworkInterfaceSet.InterfaceType.
NetworkInterfaceSet.Ipv6AddressesSet.Ipv6Address entity.entity.asset.ip הערך נלקח מ-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 הערך נלקח מ-Instances.NetworkInterfaceSet.Ipv6AddressesSet.IsPrimaryIpv6.
NetworkInterfaceSet.MacAddress entity.entity.asset.mac הערך נלקח מ-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 הערך נלקח מ-Instances.NetworkInterfaceSet.NetworkInterfaceID.
NetworkInterfaceSet.OwnerID entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_owner_id, entity.entity.asset.attribute.labels.value הערך נלקח מ-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 הערך נלקח מ-Instances.NetworkInterfaceSet.PrivateDNSName.
NetworkInterfaceSet.PrivateIPAddress entity.entity.asset.ip הערך נלקח מ-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 הערך נלקח מ-Instances.NetworkInterfaceSet.PrivateIPAddressesSet.Primary.
NetworkInterfaceSet.PrivateIPAddressesSet.PrivateIPAddress entity.entity.asset.ip הערך נלקח מ-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 הערך נלקח מ-Instances.NetworkInterfaceSet.SourceDestCheck.
NetworkInterfaceSet.Status entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_status, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.NetworkInterfaceSet.Status.
NetworkInterfaceSet.SubnetID entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_subnet_id, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.NetworkInterfaceSet.SubnetID.
NetworkInterfaceSet.VpcID entity.entity.asset.attribute.labels.key=instances_set_network_interface_set_vpc_id, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.NetworkInterfaceSet.VpcID.
OutpostArn entity.relations.entity.asset.product_object_id הערך נלקח מ-Instances.OutpostArn.
Placement.Affinity entity.entity.asset.attribute.labels.key=instances_set_placement_affinity, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.Placement.Affinity.
Placement.AvailabilityZone entity.entity.asset.attribute.cloud.availability_zone הערך נלקח מ-Instances.Placement.AvailabilityZone.
Placement.GroupID entity.entity.group.attribute.labels.key=instances_set_placement_group_id, entity.entity.group.attribute.labels.value הערך נלקח מ-Instances.Placement.GroupID.
Placement.GroupName entity.entity.group.attribute.labels.key=instances_set_placement_group_name, entity.entity.group.attribute.labels.value הערך נלקח מ-Instances.Placement.GroupName.
Placement.HostID entity.relations.entity.asset.asset_id הערך נלקח מ-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 הערך נלקח מ-Instances.Placement.HostResourceGroupArn.
Placement.PartitionNumber entity.entity.asset.attribute.labels.key=instances_set_placement_partition_number, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.Placement.PartitionNumber.
Placement.SpreadDomain entity.entity.asset.attribute.labels.key=instances_set_placement_spread_domain, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.Placement.SpreadDomain.
Placement.Tenancy entity.entity.asset.attribute.labels.key=instances_set_placement_tenancy, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.Placement.Tenancy.
PlatformDetails entity.entity.asset.attribute.labels.key=instances_set_platform_details, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.PlatformDetails.
PrivateDNSName entity.entity.network.dns.questions.name הערך נלקח מ-Instances.PrivateDNSName.
PrivateDNSNameOptions.EnableResourceNameDnsAAAARecord entity.entity.network.dns.questions.type אם הערך הוא true, שדה ה-UDM מוגדר כ-28.
PrivateDNSNameOptions.EnableResourceNameDnsARecord entity.entity.network.dns.questions.type אם הערך הוא true, שדה ה-UDM מוגדר כ-1.
PrivateDNSNameOptions.HostnameType entity.entity.asset.attribute.labels.key=instances_set_private_dns_name_options_hostname_type, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.PrivateDNSNameOptions.HostnameType.
PrivateIPAddress entity.entity.asset.ip הערך נלקח מ-Instances.PrivateIPAddress.
ProductCodes.ProductCode entity.entity.asset.attribute.labels.key=instances_set_product_codes_product_code, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.ProductCodes.ProductCode.
ProductCodes.Type entity.entity.asset.attribute.labels.key=instances_set_product_codes_type, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.ProductCodes.Type.
RamdiskID entity.entity.asset.attribute.labels.key=instances_set_ramdisk_id, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.RamdiskID.
Reason entity.entity.asset.attribute.labels.key=instances_set_reason, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.Reason.
ReservationID entity.additional.fields.key=reservation_id, entity.additional.fields.value.string_value הערך נלקח מ-ReservationID.
RequesterID entity.additional.fields.key=requester_id, entity.additional.fields.value.string_value הערך נלקח מ-RequesterID.
RootDeviceName entity.entity.asset.attribute.labels.key=instances_set_root_device_name, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.RootDeviceName.
RootDeviceType entity.entity.asset.attribute.labels.key=instances_set_root_device_type, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.RootDeviceType.
SourceDestCheck entity.entity.asset.attribute.labels.key=instances_set_source_dest_check, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.SourceDestCheck.
SpotInstanceRequestID entity.entity.asset.attribute.labels.key=instances_set_spot_instance_request_id, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.SpotInstanceRequestID.
SriovNetSupport entity.entity.asset.attribute.labels.key=instances_set_sriov_net_support, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.SriovNetSupport.
StateReason entity.entity.asset.attribute.labels.key=instances_set_state_reason_code, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.StateReason.
StateReason.Code entity.entity.asset.attribute.labels.key=instances_set_state_reason_code, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.StateReason.Code.
StateReason.Message entity.entity.asset.attribute.labels.key=instances_set_state_reason_message, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.StateReason.Message.
SubnetID entity.entity.resource_ancestors.product_object_id, entity.entity.resource_ancestors.resource_type=SUBNET הערך נלקח מ-Instances.SubnetID.
TagSet.Key entity.entity.asset.attribute.labels.key הערך נלקח מ-Instances.TagSet.Key.
TagSet.Value entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.TagSet.Value.
TpmSupport entity.entity.asset.attribute.labels.key=instances_set_tpm_support, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.TpmSupport.
UsageOperation entity.entity.asset.attribute.labels.key=instances_set_usage_operation, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.UsageOperation.
UsageOperationUpdateTime entity.entity.asset.attribute.labels.key=instances_set_usage_operation_update_time, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.UsageOperationUpdateTime.
VirtualizationType entity.entity.asset.attribute.labels.key=instances_set_virtualization_type, entity.entity.asset.attribute.labels.value הערך נלקח מ-Instances.VirtualizationType.
VpcID entity.entity.resource_ancestors.product_object_id, entity.entity.resource_ancestors.resource_type=VPC_NETWORK הערך נלקח מ-Instances.VpcID.
collection_time entity.metadata.collected_timestamp הערך נלקח ישירות מהשדה collection_time ביומן הגולמי. מקודד בתוך הקוד ל-AMAZON_WEB_SERVICES. מקודד באופן קשיח ל-AMAZON_WEB_SERVICES עבור סוגי המשאבים IMAGE,‏ VOLUME,‏ SUBNET,‏ VPC_NETWORK,‏ Instance Profile Arn,‏ Capacity Reservation Arn,‏ Elastic Interface Accelerator Arn ו-License Configuration Arn. מקודד בתוך הקוד ל-SERVER. מקודד בתוך הקוד ל-Amazon EC2. מקודד בתוך הקוד ל-AWS. מקודד באופן קשיח ל-ASSET אם Instances.Placement.HostID קיים ולא ריק. מקודד באופן קשיח ל-EXECUTES אם Instances.Placement.HostID קיים ולא ריק. מקודד כ-ASSET.

יומן שינויים

הצגת יומן השינויים של המנתח הזה

הבעיה עדיין לא נפתרה? קבלת תשובות מחברי הקהילה וממומחי Google SecOps.