> For the complete documentation index, see [llms.txt](https://docs.panther.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.panther.com/ko/data-onboarding/supported-logs/heroku.md).

# Heroku 로그

## 개요

Panther가 수집하는 [Heroku 런타임 로그](https://devcenter.heroku.com/articles/logging#runtime-logs) 다음을 구성하여 [Heroku 로그 드레인](https://devcenter.heroku.com/articles/log-drains#https-drains) Panther에 이벤트를 게시하려면 [HTTP 소스](/ko/data-onboarding/data-transports/http.md).

## Heroku 런타임 로그를 Panther에 연결하는 방법

### 사전 요구 사항

* 이 프로세스의 2단계를 완료하려면( Heroku에서 로그 드레인을 생성하려면) Heroku의 CLI가 설치되어 있어야 합니다. 아직 설치되어 있지 않다면, 다음을 따르세요 [여기에서 이를 설치하는 Heroku 문서](https://devcenter.heroku.com/articles/heroku-cli#install-the-heroku-cli).

### 1단계: Panther에서 새 Heroku 소스 만들기

1. Panther Console의 왼쪽 탐색 모음에서 클릭 **구성** > **로그 소스.**
2. 다음을 클릭합니다: **새로 만들기**.
3. “Heroku”를 검색한 다음 해당 타일을 클릭합니다.
   * 슬라이드아웃 패널에서, **전송 메커니즘** 오른쪽 상단의 드롭다운은 다음 값으로 미리 채워집니다. **HTTP** 옵션.
4. 다음을 클릭합니다: **설정 시작**.\\

   <figure><img src="/files/dba8eea16a631c397795ab6d5925f4c3705bdebd" alt="The new source setup page for Heroku is shown in the Panther Console. The Transport Mechanism dropdown field is has a value of &#x22;HTTP&#x22; pre-selected. To its right is a Start Setup button."><figcaption></figcaption></figure>
5. 다음을 따르세요 [HTTP Source를 구성하기 위한 Panther의 안내](/ko/data-onboarding/data-transports/http.md).
   * 이 로그 소스를 처음 설정할 때 다음을 설정하세요 **인증 방법** 다음으로 **없음**. 아래의 3단계에서 Heroku에서 인증 토큰을 가져온 후 Shared Secret 인증으로 변경하게 됩니다.
   * 이 소스로 전송되는 페이로드는 [모든 HTTP 소스에 대한 페이로드 요구 사항](/ko/data-onboarding/data-transports/http.md#payload-requirements).
   * HTTP 엔드포인트 생성이 완료될 때까지 다음 단계로 진행하지 마세요.

### 2단계: Heroku에서 새 로그 드레인 만들기

이 단계를 시작하기 전에 [필수 조건](#prerequisite) 이 충족되었는지 확인하세요.

1. Heroku 앱에서 Panther의 HTTP 소스로 향하는 로그 드레인을 설정하려면 Heroku CLI에서 다음 명령의 사용자 지정 버전을 실행하세요:\
   `heroku drains:add https://logs.mypantherdomain.runpanther.net/http/1081f021-a983-4dae-bcbb-1952ffaa4e72 -a myherokuappname`
2. 드레인 토큰을 가져오려면 다음 명령을 실행하세요:\
   `heroku drains --json -a myherokuappname`
   * 이 명령의 출력에서 다음의 값을 저장하세요 `토큰`. 다음 단계에서 사용됩니다.

### 3단계: Panther에서 로그 소스 보호

1. Panther Console로 다시 이동하세요.
2. 1단계에서 만든 로그 소스를 찾으려면 다음을 클릭하여 **구성** > **로그 소스**, 그런 다음 소스 이름을 클릭합니다.
3. 오른쪽 상단에서 다음을 클릭합니다: **구성**, 그런 다음 **편집**.
4. 오른쪽 상단 모서리에서 다음을 클릭하세요 **보안** 탭.
5. 다음의 값을 변경하세요 **인증 방법** 드롭다운을 **공유 비밀키**, 그런 다음 다음 필드에 값을 입력하세요:
   * **헤더 이름**: 입력 `Logplex-Drain-Token`.
   * **공유 비밀 값**: 다음을 붙여넣습니다 `토큰` 이전 단계에서 Heroku CLI에서 가져온 값
6. 다음을 클릭합니다: **저장**.

## 지원되는 로그 유형

### Heroku.Runtime

`Heroku.Runtime` 로그는 앱, 시스템, API 및 애드온 로그를 포함하는 Heroku의 이벤트 로그입니다. 자세한 내용은 다음을 참조하세요 [Heroku의 런타임 로그 문서.](https://devcenter.heroku.com/articles/logging#runtime-logs)

```yaml
스키마: Heroku.Runtime
파서:
  fastmatch:
    match:
      - '%{message_len} <%{priority}>%{version} %{timestamp} %{host_name} %{app_name} %{process_id} %{message_id} %{message}'
    emptyValues:
      - '-'
설명: 앱 자체의 로깅 출력으로, 앱 코드와 종속성에서 생성된 로그뿐 아니라 시스템 및 API 로그도 포함합니다.
참조 URL: https://devcenter.heroku.com/articles/logging#runtime-logs
fields:
  - 이름: message_len
    유형: int
  - 이름: priority
    유형: int
  - 이름: version
    type: string
  - 이름: timestamp
    type: timestamp
    timeFormats:
      - rfc3339
    isEventTime: true
  - 이름: host_name
    type: string
    표시자:
      - 호스트 이름
  - 이름: app_name
    type: string
  - 이름: process_id
    type: string
  - 이름: message_id
    type: string
  - name: message
    type: string
```


---

# 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:

```
GET https://docs.panther.com/ko/data-onboarding/supported-logs/heroku.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.
