- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
This guide walks you through how to redact all emails, except the ones from a specific email domain (for example, @test.com
), in your logs.
If the email domain you do not want redacted is not an existing log attribute, set up a grok parser to identify all logs with the email domain and add it as an attribute.
message successfully sent to 123@test.com
message successfully received from 256@test.com
MyParsingRule1 message successfully sent to %{notSpace:user_handle}@%{notSpace:domain}
MyParsingRule2 message successfully received from %{notSpace:user_handle}@%{notSpace:domain}
test.com
, then for an email like hello@test.com
, discard the username hello
and just keep the domain test.com
.Navigate to Log Explorer to confirm that new logs coming in with those emails are getting processed as expected.
Update your Sensitive Data Scanner’s scanning group to filter out logs with the domain attribute that you created, so only logs that do not have that email domain are redacted.
test.com
, add -@domain:test.com
to the filter query.Navigate to Log Explorer to confirm that the new logs coming in do not have emails with the specified domain redacted.
추가 유용한 문서, 링크 및 기사: