Skip to content

Commit

Permalink
Update docs for xk6-loki log formats (#6134)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
  • Loading branch information
chaudum committed Jun 1, 2022
1 parent 50ef4f2 commit b2b4fde
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/sources/clients/k6/log-generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,19 @@ is used.

## Log format

`xk6-loki` can emit log lines in six distinct formats. The label `format` of a stream defines the format of its log lines.
`xk6-loki` can emit log lines in seven distinct formats. The label `format` of
a stream defines the format of its log lines.

* Apache common (`apache_common`)
* Apache combined (`apache_combined`)
* Apache error (`apache_error`)
* [BSD syslog](https://datatracker.ietf.org/doc/html/rfc3164) (`rfc3164`)
* [Syslog](https://datatracker.ietf.org/doc/html/rfc5424) (`rfc5424`)
* JSON (`json`)
* [logfmt](https://pkg.go.dev/github.com/kr/logfmt) (`logfmt`)

Under the hood, the extension uses the library [flog](https://github.com/mingrammer/flog) for generating log lines.
Under the hood, the extension uses a fork the library
[flog](https://github.com/mingrammer/flog) for generating log lines.

## Labels

Expand All @@ -83,7 +86,7 @@ Under the hood, the extension uses the library [flog](https://github.com/mingram
| name | type | cardinality |
| --------- | -------- | --------------- |
| instance | fixed | 1 per k6 worker |
| format | fixed | 6 |
| format | fixed | 7 |
| os | fixed | 3 |
| namespace | variable | >100 |
| app | variable | >100 |
Expand Down

0 comments on commit b2b4fde

Please sign in to comment.