Skip to main content

create gcp logging to detect who last access identity email contains @domain in the last 90 days

To create a GCP logging to detect who last accessed identity email containing "@bagussa.com" in the last 90 days, you can follow the steps below:

  1. Open the GCP console and navigate to the Logging section.
  2. Click on "Logs Explorer" and select the project where you want to create the logging.
  3. In the query bar, enter the following query:


resource.type="audited_resource" logName:"logs/cloudaudit.googleapis.com%2Factivity" protoPayload.authenticationInfo.principalEmail:"@bagussa.com" timestamp>="`date -d '-90 days' -u +%FT%TZ`"

  1. This query will filter the logs of audited resources in the past 90 days that contain the email address "@bagussa.com" in the authentication information.
  2. Click on "Create Metric" and fill in the required information to create a new metric for this query.
  3. Once the metric is created, you can set up an alert policy to notify you when a user accesses an identity email containing "@bagussa.com" in the last 90 days.

By following the above steps, you can create a GCP logging to detect who last accessed identity email containing "@bagussa" in the last 90 days.

Comments

Popular posts from this blog

Troubleshooting WAF, CDN, and Load balancer

 Troubleshooting issues involving a Web Application Firewall (WAF), Content Delivery Network (CDN), and Load Balancer (LB) can be complex. Here is a step-by-step guide, including testing methods and relevant commands to isolate problems at each level. ### Step 1: Check Basic Connectivity 1. **Ping the Website**:    ```sh    ping example.com    ``` 2. **Check DNS Resolution**:    ```sh    nslookup example.com    ``` ### Step 2: Verify Load Balancer 1. **Direct Access to Load Balancer**:    Modify `/etc/hosts` to bypass CDN and WAF, pointing directly to the load balancer’s IP.    ```sh    sudo nano /etc/hosts    ```    Add the line:    ```    LB_IP example.com    ```     2. **Test HTTP Response**:    ```sh    curl -I http://example.com    ```    Check headers and status code to verify the load bal...

Soal dan pembahasan LKSN ITNSA

Berikut adalah koleksi soal-soal ITNSA dan beberapa website yang memberikan pembahasan pada event perlombaaan LKS SMK Nasional bidang lomba IT Network Systems Administration. 2014 Palembang Di tahun ini ada 1 soal packet tracer. Di website dibawah ini diberikan juga cara pembahasannya. https://agussas.wordpress.com/2015/04/02/review-soal-lks-nasional-it-network-23-packet-tracer-challenge/ Semua soal:  https://www.dropbox.com/sh/l90zyke2ib5msgv/AAA3kPOFo-zEn4wPOW4a3iMwa?dl=0 dan https://drive.google.com/file/d/18lDhtMjAnPAhkfOJ6uFHsC5j6ycg3K4I/view Pembahasan juga dalam bentuk video di youtube:  https://www.youtube.com/watch?v=8QML594nQBU 2015 Banten Pembahasan:   https://www.youtube.com/watch?v=quDbpC2xSfQ Soal:  https://drive.google.com/file/d/1B09IYfdoGENBL3txSQodpptG1zdQxBWI/view 2016 Malang Soal:   https://drive.google.com/file/d/13-2bRtb5IXO9vxAhLfhghZbDXeUzD0FI/view Pembahasan:   https://www.youtube.com/watch?v=zmUSUZguH24 20...

CSPM

 CSPM adalah Cloud Security Posture Management Salah satu tool yang popular di dunia security khususnya cloud dimana dengan CSPM ini bisa mengetahui miskonfigurasi pada cloud, CSPM berisi policy didalam sebuah compliance, apakah suatu cloud provider yang digunakan dikonfigurasi dengan sesuai standard keamanan/compliance. ada beberapa tool CSPM seperti: Prisma CSPM Disini prisma CSPM akan melakukan pengecekkan ke cloud service provider yang akan discan biasanya dengan meletakkan suatu service account dan role yang berisi permission disebuah projek security agar bisa melakukan scanning dengan benar dan memberikan report berikut salah satu kerja CSPM dengan melakukan ingestin API dari misalnnya google cloud. https://docs.paloaltonetworks.com/prisma/prisma-cloud/prisma-cloud-rql-reference/rql-reference/gcp-apis-ingested-by-prisma-cloud CSPM terdiri dari beberapa modul RQL: Config RQL Network RQL Event RQL IAM RQL https://docs.paloaltonetworks.com/prisma/prisma-cloud/prisma-cloud-rql-re...