- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
",t};e.buildCustomizationMenuUi=t;function n(e){let t='
",t}function s(e){let n=e.filter.currentValue||e.filter.defaultValue,t='${e.filter.label}
`,e.filter.options.forEach(s=>{let o=s.id===n;t+=``}),t+="${e.filter.label}
`,t+=`Observability Pipelines’ processors enable you to add, edit, and remove log fields. Remapping attributes or rewriting values ensures your logs are processed and standardized properly. For the majority of processing use cases, use the Edit Fields processor to add, remap, or remove fields from your logs. For advanced use cases, use the Custom Processor to conditionally modify fields or rewrite a field’s value.
In Datadog, reserved attributes are log fields that are set aside for specific processing in the platform. Reserved attributes include host
, source
, status
, service
, trace_id
, and message
. Reserved attributes are applied when routing logs to the following Observability Pipelines destinations:
There are restrictions in Observability Pipelines on how you can modify reserved attributes. For example, reserved attributes cannot be renamed using the Rename Field processor, but must be remapped instead. This guide walks you through the steps to remap the value of reserved attributes.
To change or override the value of an existing reserved attribute field, Datadog recommends two approaches using Observability Pipelines. The first uses the Edit Fields processor, and the second uses the Custom Processor.
Note: In terms of the processor order, the Add Field processor should go immediately after the Remove Field processor to ensure correct field remapping.
The Remove field processor image below removes the improperly named service
field from the log.
The Add field processor image below re-adds the service
field back with the correct value.
Use the Custom Processor to rewrite the reserved attribute’s value.
The following Custom Processor script rewrites the service
field and dynamically assigns the value of app_id
to the service
field’s value.
.service = {{.app_id}}
In the below example image, the input shows service
with the value wrongstatus
. After processing the log with the script, the output shows service
with the value of streaming-service
, which is app_id
’s value.
The following Custom Processor script sets the status
field to the static value info
.
.status = "info"
In the below example image, the input shows status
with the value wrongstatus
. After processing the log with the script, the output shows status
with info
as assigned.