Skip to content

Commit

Permalink
Update docs/best-practices.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sumo-drosiek authored Sep 7, 2023
1 parent 23604ea commit 3c76875
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions docs/best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,23 +359,17 @@ change the parameters of these processors in any way, you can define your own an
If you want to remove some attributes from Systemd logs, like for example `PRIORITY` and `SYSLOG_FACILITY`, you can do it the following way:

```yaml
otellogs:
config:
merge:
processors:
transform/cleanup_systemd:
log_statements:
- context: log
statements:
- delete_key(body, "PRIORITY")
- delete_key(body, "SYSLOG_FACILITY")
service:
pipelines:
logs/systemd:
processors:
- logstransform/systemd
- transform/cleanup_systemd
- batch
sumologic:
logs:
systemd:
otelcol:
extraProcessors:
- transform/cleanup_systemd:
log_statements:
- context: log
statements:
- delete_key(body, "PRIORITY")
- delete_key(body, "SYSLOG_FACILITY")
```

**Note: We do not guarantee that the structure of `otellogs.config.merge` will remain the same between minor helm chart versions**
Expand Down

0 comments on commit 3c76875

Please sign in to comment.