본문 바로가기

11월 26일 22:59 기준 · 10분마다 새 소식을 확인합니다

광고나 제휴로 순서를 바꾸지 않습니다 · pick 기준 보기 ›
소식 받기
코딩 · 개발

장애 시간대 에러 로그 추출

수만 줄의 수동 점검 로그 데이터에서 특정 시간대 및 FATAL/ERROR 라인만 정밀하게 발췌합니다.

추천 툴
공통AI 분류
쓰인 기법
조건 지정 · 출력 형식 지정 · 제약 조건 지정

프롬프트 원문

From the log below, show only the lines from [10] minutes before to
[10] minutes after [time and time zone], plus any line anywhere marked
ERROR or FATAL. Quote each line exactly and keep the original order.
Tell me how many lines you left out. Don't summarize yet.
[paste the log]
한국어 풀이 보기(참고용)
아래 로그 중에서 [시간 및 타임존] 기준 전후 [10]분 동안의 로그 라인과, 위치에 상관없이 ERROR 또는 FATAL로 표시된 모든 라인만 추출해 주세요. 각 라인은 원래 순서를 유지하며 원문 그대로 인용하세요. 제외된 라인 수가 총 몇 개인지 명시해 주세요. 아직 요약은 하지 마세요.

[로그 붙여넣기]
  • 활용AI가 원문을 임의로 요약하거나 변형하지 못하도록 제약을 걸어 원형을 보존합니다.
  • 활용[시간 및 타임존] 부분에 장애 발생 시각(예: 14:30 KST)을 지정해 넣으세요.

출처 · prompts.chat · Support log triage: show only the problem window and ERROR or FATAL lines, quoted exactly — 원문은 출처에 게시된 그대로이며, 권리는 원작자에게 있습니다.

텍스트 결과

Gemini로 실행한 결과입니다. 입력 항목에는 국내 환경의 예시값을 적용했습니다(AI 생성 — 사실 확인 필요).

실행 입력값 보기
From the log below, show only the lines from 5 minutes before to 5 minutes after 2023-10-25 14:30:00 KST, plus any line anywhere marked ERROR or FATAL. Quote each line exactly and keep the original order. Tell me how many lines you left out. Don't summarize yet.

[2023-10-25 14:10:02 KST] INFO System startup initialized
[2023-10-25 14:15:10 KST] WARN High memory usage detected
[2023-10-25 14:18:00 KST] ERROR Database connection failed
[2023-10-25 14:26:15 KST] INFO User authentication successful: user_id=test_user
[2023-10-25 14:29:40 KST] INFO Payment request received: order_id=10029
[2023-10-25 14:31:05 KST] INFO Payment processing completed
[2023-10-25 14:34:50 KST] INFO API response sent 200 OK
[2023-10-25 14:40:12 KST] DEBUG Cache cleared
[2023-10-25 14:50:00 KST] FATAL System crash due to out of memory
[2023-10-25 14:55:00 KST] INFO System reboot initiated

요청하신 조건(2023-10-25 14:30:00 KST 기준 전후 5분 이내 로그 및 ERROR/FATAL 로그)에 해당하는 로그 라인입니다:

"[2023-10-25 14:18:00 KST] ERROR Database connection failed"
"[2023-10-25 14:26:15 KST] INFO User authentication successful: user_id=test_user"

"[2023-10-25 14:29:40 KST] INFO Payment request received: order_id=10029"

"[2023-10-25 14:31:05 KST] INFO Payment processing completed"

"[2023-10-25 14:34:50 KST] INFO API response sent 200 OK"

"[2023-10-25 14:50:00 KST] FATAL System crash due to out of memory"

제외된 로그 라인 수: 총 4줄

mopick 개선안

원문을 더 잘 동작하게 고쳐 쓴 프롬프트

원문을 그대로 넣으면 AI 가 매번 다르게 답하거나 중요한 부분을 빠뜨릴 수 있습니다. 개선안은 원문의 뜻과 언어는 그대로 두고 역할 · 바꿔 넣을 입력 칸 · 결과 형식 · 지킬 조건을 보완해 다시 쓴 버전입니다. 원문과 같은 곳(ChatGPT · Claude 등)에 그대로 붙여 넣어 쓰면 됩니다.

AI 자체 평가 — 개선안을 쓴 AI 가 명확성 · 구체성 · 결과 형식 · 재사용성 기준(100점)으로 직접 매긴 점수 · 결과를 돌려 검증한 값은 아님

원문61
개선안89

원문의 문제 → 개선안에서 고친 점

  • AI 역할레슨 01 배우기 ›

    원문 · 없음AI 에게 맡길 역할이 정해져 있지 않아 답의 관점 · 수준이 그때그때 달라질 수 있었습니다.

    개선 · 역할을 정함Act as a Log Analyst. From the log below, extract only the lines within [10] minutes of [T

  • 입력 칸레슨 05 배우기 ›

    원문 · 2개바꿔 넣을 자리가 일부만 표시돼 있어 쓸 때마다 원문을 고쳐야 했습니다.

    개선 · 3개[Time and Timezone]

고친 이유 (개선안을 만든 AI 의 설명)

  1. 1전문가 역할을 부여하여 분석의 정확도 향상
  2. 2불렛포인트를 사용하여 제약 사항을 구조화함
  3. 3제외된 행 계산 등 출력 요구사항을 명확히 함

이 개선안에 쓰인 기법 — 프롬프트 클래스에서 배우기

01역할 정하기05입력 칸으로 템플릿 만들기09구역을 나눠 쓰기

클래스 전체 ›

원문

From the log below, show only the lines from [10] minutes before to
[10] minutes after [time and time zone], plus any line anywhere marked
ERROR or FATAL. Quote each line exactly and keep the original order.
Tell me how many lines you left out. Don't summarize yet.
[paste the log]

개선안 · 색칠한 [칸]에 내 내용을 넣어 쓰세요

Act as a Log Analyst. From the log below, extract only the lines within [10] minutes of [Time and Timezone], plus any line containing 'ERROR' or 'FATAL'.

- Quote each matching line exactly as it appears.
- Maintain the original chronological order.
- Do not summarize or paraphrase any content.
- At the end, state the total count of lines excluded.

[Paste Log]

같은 분야 프롬프트 코딩 · 개발

더 보기 ›