Skip to content

Commit

Permalink
Merge pull request #17 from stakater/fixlogging
Browse files Browse the repository at this point in the history
Fixes channel name
  • Loading branch information
karl-johan-grahn authored Apr 26, 2023
2 parents 8e21b0a + 159fd58 commit b2497e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/managed-addons/monitoring-stack/log-alerts.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ We recommend to log as JSON but for some reason if you can't then follow the nex

### Examples

Following Configuration will send the log to Slack channel `my-application-log-alerts` if the regex described in `pattern` matches in the field described in `key`.
Following Configuration will send the log to Slack channel `#my-application-log-alerts` if the regex described in `pattern` matches in the field described in `key`.

```yaml
deployment:
fluentdConfigAnnotations:
notifications:
slack:
webhookURL: https://hooks.slack.com/services/XXXXXXX/YYYYYYYYY/aaaaaaabbbbbcccccddd
channelName: my-application-log-alerts
webhookURL: "https://hooks.slack.com/services/XXXXXXX/YYYYYYYYY/aaaaaaabbbbbcccccddd"
channelName: "#my-application-log-alerts"
key: "level"
pattern: "(ERROR|ERR|error|E[A-Z0-9]{4})"
```
Expand Down

0 comments on commit b2497e2

Please sign in to comment.