Skip to content

Commit 7362864

Browse files
Merge pull request #1879 from fluent/alexakreizinger/sc-136279/update-fluent-bit-docs-pipeline-parsers-logfmt
2 parents d442f52 + cb70df0 commit 7362864

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pipeline/parsers/logfmt.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Logfmt
22

3-
The **logfmt** parser allows to parse the logfmt format described in [https://brandur.org/logfmt](https://brandur.org/logfmt) . A more formal description is in [https://godoc.org/github.com/kr/logfmt](https://godoc.org/github.com/kr/logfmt) .
3+
The _logfmt_ parser lets you parse data in the [logfmt](https://pkg.go.dev/github.com/kr/logfmt?utm_source=godoc) format.
44

55
Here is an example parsers configuration:
66

@@ -25,22 +25,21 @@ parsers:
2525
{% endtab %}
2626
{% endtabs %}
2727

28-
The following log entry is a valid content for the parser defined above:
28+
The following log entry is valid for the previously defined parser:
2929

3030
```text
3131
key1=val1 key2=val2 key3
3232
```
3333

34-
After processing, it internal representation will be:
34+
After processing, its internal representation will be:
3535

3636
```text
3737
[1540936693, {"key1"=>"val1",
3838
"key2"=>"val2"
3939
"key3"=>true}]
4040
```
4141

42-
If you want to be more strict than the logfmt standard and not parse lines where some attributes do
43-
not have values (such as `key3`) in the example above, you can configure the parser as follows:
42+
If you want to be more strict than the logfmt standard and not parse lines where certain keys lack values (such as `key3` in the previous example), you can configure the parser as follows:
4443

4544
{% tabs %}
4645
{% tab title="parsers.yaml" %}
@@ -63,4 +62,4 @@ parsers:
6362
```
6463

6564
{% endtab %}
66-
{% endtabs %}
65+
{% endtabs %}

vale-styles/FluentBit/Spelling-exceptions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ Kusto
100100
labelset
101101
librdkafka
102102
loadgenerator
103+
logfmt
103104
Logstash
104105
Lua
105106
Lucene

0 commit comments

Comments
 (0)