Skip to content

Commit 461bfdb

Browse files
committed
edits
1 parent 1e10216 commit 461bfdb

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

docs/send-data/opentelemetry-collector/remote-management/processing-rules/mask-rules-windows.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ Any masking expression should be tested and verified with a sample source file b
3434

3535
For example, to mask numbers inside `guid` under `provider` field from this log:
3636

37-
```
38-
{
37+
`{
3938
"record_id": 163054,
4039
"channel": "Security",
4140
"event_data": {
@@ -84,8 +83,7 @@ For example, to mask numbers inside `guid` under `provider` field from this log:
8483
"id": 4798
8584
},
8685
"level": "Information"
87-
}
88-
```
86+
}`
8987

9088
You could use the following masking expression input:
9189
1. Key as `provider.guid`.

docs/send-data/opentelemetry-collector/remote-management/processing-rules/mask-rules.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ auth=User:.*\.com
2424

2525
Using the masking string `auth=User:AAA` would produce the following result:
2626

27-
```sh
28-
2018-05-16 09:43:39,607 -0700 DEBUG [hostId=prod-cass-raw-8] [module=RAW] [logger=scala.raw.InboundRawProtocolHandler] [auth=User:AAA] [remote_ip=98.248.40.103] [web_session=19zefhqy...] [session=80F1BD83AEBDF4FB] [customer=0000000000000005] [call=InboundRawProtocol.getMessages]
29-
```
27+
`2018-05-16 09:43:39,607 -0700 DEBUG [hostId=prod-cass-raw-8] [module=RAW] [logger=scala.raw.InboundRawProtocolHandler] [auth=User:AAA] [remote_ip=98.248.40.103] [web_session=19zefhqy...] [session=80F1BD83AEBDF4FB] [customer=0000000000000005] [call=InboundRawProtocol.getMessages]`
3028

3129
## Rules
3230

3331
* Expressions that you want masked must be selected by the regular expression you given. And the masking string provided will mask whole of the string which is selected by the regular expression.
3432

35-
For example, this log message:
33+
For example, for this log message:
3634

3735
`{
3836
"reqHdr":{

0 commit comments

Comments
 (0)