> 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 소스를 구성하기 위한 Panther의 지침](/ko/data-onboarding/data-transports/http.md).
   * 이 로그 소스를 처음 설정할 때는 다음을 **인증 방식** 로 **None**. 아래 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` 로그는 Heroku의 이벤트 로그로, 앱, 시스템, API 및 애드온 로그를 포함합니다. 자세한 내용은 다음을 참조하세요 [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
필드:
  - 이름: message_len
    유형: int
  - 이름: priority
    유형: int
  - 이름: version
    유형: string
  - 이름: timestamp
    유형: timestamp
    시간 형식:
      - rfc3339
    이벤트 시간 여부: true
  - 이름: host_name
    유형: string
    지표:
      - 호스트 이름
  - 이름: app_name
    유형: string
  - 이름: process_id
    유형: string
  - 이름: message_id
    유형: string
  - 이름: message
    유형: 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, and the optional `goal` query parameter:

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