> 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/application-log.md).

# 애플리케이션 로그

### 칵테일 로그서비스에서 애플리케이션이란 <mark style="color:blue;">서비스맵에 존재하는 워크로드</mark>를 의미합니다.

{% hint style="info" %}
애플리케이션 로그를 확인하려면 먼저 애플리케이션 관리 탭에서 등록을 해야합니다.
{% endhint %}

{% content-ref url="/pages/HNBzg9Mq1lSpETUBDDQO" %}
[애플리케이션 관리](/cocktail-cloud-online/log-service/application-log/app-create.md)
{% endcontent-ref %}

## 1. 로그 조회

로깅 - 애플리케이션 로그 - 조회할 애플리케이션 목록에서 애플리케이션 선택합니다.

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

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

**`애플리케이션`**: 클러스터에 존재하는 모든 애플리케이션 목록을 조회할 수 있습니다.

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

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

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

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

## 2. 로그 상세 조회

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

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

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

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

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

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

## 3. 시간별 로그 조회

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

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

<figure><img src="/files/5q3POtXZAwZr7Tylct9K" alt=""><figcaption></figcaption></figure>

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

## 4. 레이블 조회

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

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

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

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

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

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

## 5. 로그 검색

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

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

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

## 6. 로그 다운로드

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

<figure><img src="/files/NNijXVN3POrmPinS0nzS" 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/application-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.
