본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Log

원문 보기 위키 갱신

이 문서는 로그 속성을 정의해요.

출처: 문서

본문

  • 일반 Log 속성
  • Log File 속성
  • Log Record 속성

일반 Log 속성

이 문서는 로그 속성을 정의해요.

속성:

Key Stability Value Type Description Example Values
log.iostream string The stream associated with the log. See below for a list of well-known values. stdout; stderr

log.iostream 는 다음과 같은 잘 알려진 값 목록을 가져요. 그중 하나가 해당된다면 해당 값을 반드시 사용해야 하고, 그렇지 않다면 사용자 정의 값을 사용해도 돼요. | Value | Description | Stability | |---|---|---| | stderr | Events from stderr stream | | | stdout | Logs from stdout stream | |

Log File 속성

로그가 출력된 파일에 대한 속성이에요.

속성:

Key Stability Value Type Description Example Values
log.file.name string The basename of the file. audit.log
log.file.name_resolved string The basename of the file, with symlinks resolved. uuid.log
log.file.path string The full path to the file. /var/log/mysql/audit.log
log.file.path_resolved string The full path to the file, with symlinks resolved. /var/lib/docker/uuid.log

Log Record 속성

이 문서는 모든 Log Record에서 사용할 수 있는 일반 속성을 정의해요.

속성:

Key Stability Value Type Description Example Values
log.record.original string The complete original Log Record. [1] 77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - - Something happened; [INFO] 8/3/24 12:34:56 Something happened
log.record.uid string A unique identifier for the Log Record. [2] 01ARZ3NDEKTSV4RRFFQ69G5FAV

[1] log.record.original: This value MAY be added when processing a Log Record which was originally transmitted as a string or equivalent data type AND the Body field of the Log Record does not contain the same value. (e.g. a syslog or a log record read from a file.)

[2] log.record.uid: If an ID is provided, other log records with the same ID will be considered duplicates and can be removed safely. This means, that two distinguishable log records MUST have different values. The ID MAY be an Universally Unique Lexicographically Sortable Identifier (ULID), but other identifiers (e.g. UUID) may be used as needed.