> For the complete documentation index, see [llms.txt](https://cocktailcloud.gitbook.io/cocktail-cloud-online/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cocktailcloud.gitbook.io/cocktail-cloud-online/log-service/container-log.md).

# 컨테이너 로그

## 1. 로그 조회

로깅 - 컨테이너 로그 - 조회할 네임스페이스 목록에서 네임스페이스 선택합니다.

<figure><img src="/files/0ooiJhKiXoXZtcC7ocGo" alt=""><figcaption></figcaption></figure>

**`시간별 조회`** : 지난 5분 부터 48시간 전의 로그를 검색할 수 있고, 최대 2주전의 로그를 확인할 수 있습니다.

**`네임스페이스`** : 해당 클러스터에 존재하는 모든 네임스페이스 목록을 조회할 수 있습니다.

**`더보기`** : 목록의 마지막 시간 이후의 로그를 가져옵니다.

**`최대 로그수`** / **`총 로그수`** : 해당 시간에 조회한 최대 로그 수 와 총 로그 수를 의미합니다.

{% hint style="info" %}
한번에 조회하는 최대 로그는 5000개입니다. 조회하는 기간은 최대 일주일입니다.&#x20;
{% endhint %}

{% hint style="info" %}
더보기 버튼은 총 로그 수가 5000개 초과 일 시 노출됩니다.
{% endhint %}

## 2. 로그 상세 조회

시간별로 조회된 로그의 링크 버튼을 클릭하여 해당 로그의 상세 정보를 확인합니다.

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

<figure><img src="/files/2y8AyEAYP0N7XZyKr4Vb" alt=""><figcaption></figcaption></figure>

**`로그 메세지`** : 실제 발생된 로그의 내용을 확인할 수 있습니다.

**`라벨 정보`** : + 버튼을 클릭하여 펼쳐 라벨 정보를 확인합니다.

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

**`라벨 정보`** : - 버튼을 클릭하여 펼쳐진 라벨 정보를 닫을 수 있습니다.

## 3. 시간별 로그 조회

각 그래프를 한번 클릭하면 해당 시간의 로그를 확인할 수 있고, **한번 더** 누르게 되면 다시 전체 시간의 로그를 확인합니다.

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

<figure><img src="/files/1oylcuMpqbo86Gut2z2S" alt=""><figcaption></figcaption></figure>

**`그래프 클릭`** : 현재 시간의 로그가 2,680개인것을 확인할 수 있습니다.

## 4. 레이블 조회

오른쪽에 있는 화살표 버튼을 클릭하면 해당 시간에 존재하는 로그의 레이블 집합을 확인할 수 있습니다.

<figure><img src="/files/1IRJIfGcD5WU42k9kCNg" alt=""><figcaption></figcaption></figure>

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

**`레이블 목록 키`** : 조회된 로그의 레이블 목록을 나타냅니다. 레이블 버튼을 클릭하여 레이블 값을 확인할 수 있습니다.

**`레이블 목록 값`** : 레이블 값을 클릭하여 AND 검색을 통해 조회하고 싶은 조건을 추가하여 찾고자하는 로그를 검색합니다.

**`선택한 레이블 값`** : 레이블 조건을 추가하게되면 그래프 상단에 조건이 추가가 되고 X 버튼을 클릭하여 조건을 제거하여 검색할 수 있습니다.

## 5. 로그 검색

검색어에 검색하고자 하는 키워드를 넣고 검색버튼을 클릭하여 검색어에 대한 로그를 조회합니다.

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

**`검색어`** : 대소문자를 상관없이 해당 문자열이 존재하는 로그를 검색할 수 있습니다.

## 6. 로그 다운로드

그래프 상단의 "다운로드" 버튼을 클릭하여 로그를 다운로드 합니다.

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

**`다운로드`** : 최대 5천건의 검색한 로그에 대하여 excel파일의 형식으로 로그 데이터를 다운로드 할 수 있습니다.

각 열에는 레이블 값이 들어가게 됩니다.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://cocktailcloud.gitbook.io/cocktail-cloud-online/log-service/container-log.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
