# Activity Log

NCS มี Service สำหรับการตรวจสอบ ติดตามเหตุการณ์ และบริหารจัดการความมั่นคงปลอดภัยของระบบ Cloud ภายในแต่ละ Project โดยหนึ่งในนั้นคือ Activity Log ที่จะเก็บข้อมูลเหตุการณ์ที่เกิดขึ้นกับ Resource ต่างๆ ภายใน Project ทั้งหมด เช่น การสร้าง/ลบ/attach/detach Resource

<figure><img src="/files/viwyKjNwKPI6w6nHu29H" alt=""><figcaption></figcaption></figure>

การเข้าถึง Service ที่ใช้เก็บเหตุการณ์ที่เกิดขึ้นกับ Resource ต่างๆ ภายใน Project ทั้งหมด อย่าง Activity Log สามารถเข้าถึงได้ผ่าน Sidebar ที่ Service "Activity Log" ภายใต้ Service Group "Audit Service" โดยภายในหน้า Activity Log จะประกอบด้วย

1. **Search/Filter**: ส่วนที่ใช้การในค้นหาข้อมูลเหตุการณ์ Activity Log โดยสามารถ Filter ได้จาก
   1. **Plain Text**: ข้อความส่วนหนึ่งของข้อมูลเหตุการณ์รวมถึง Event Name, Description
   2. **Date Time**: วัน-เวลาที่เกิดเหตุการณ์ขึ้น
   3. **Event**: ชื่อของ Event เช่น compute.instance.create.end, compute.instance.volume.attach
2. **Activity Log Data Table**: ส่วนของการแสดงข้อมูล Activity Log
   1. โดยข้อมูลของ Activity Log จะประกอบจาก 3 Columns ดังนี้
      1. **Date Time**: วัน-เวลาที่เกิดเหตุการณ์ขึ้น
      2. **Event**: ชื่อของ Event
      3. **Descripion**: คำอธิบายของ Event
   2. สามารถดูรายละเอียดของ Event เพิ่มเติมได้ โดยการ Expand แต่ละ Activity Log เพื่อดูข้อมูลเพิ่มเติม โดยแต่ละ Event จะมีโครงสร้างข้อมูลที่ไม่เหมือนกัน
   3. **ข้อมูล Activity Log จะถูกเก็บไว้เป็นระยะเวลาอย่างน้อย 90 วัน**

{% hint style="info" %}
Activity Log เป็น Experimental Service ที่จะเปิดให้บริการเฉพาะบาง Project เท่านั้น
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-epc.gitbook.io/ncs-documents/audit-service/activity-log.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
