Skip to content

Commit 7a11c8f

Browse files
authored
Fix/docs parse (#447)
* Parser name fix
1 parent 4125b46 commit 7a11c8f

File tree

6 files changed

+23
-5
lines changed

6 files changed

+23
-5
lines changed

docs/plugins/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ For more information please click on the plugin name
4141
| **[Splunk Hec](outputs/splunk_hec/)** | outputs | Fluent Plugin Splunk Hec Release 1.2.1 | GA | [1.2.1]() |
4242
| **[SumoLogic](outputs/sumologic/)** | outputs | Send your logs to Sumologic | GA | [1.6.1](https://github.com/SumoLogic/fluentd-output-sumologic/releases/tag/1.6.1) |
4343
</center>
44+

docs/plugins/filters/parser.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,24 @@ weight: 200
3737
| local_time | bool | No | true | Ff true, use local time. Otherwise, UTC is used. This is exclusive with utc. <br> |
3838
| utc | bool | No | false | If true, use UTC. Otherwise, local time is used. This is exclusive with localtime <br> |
3939
| timezone | string | No | nil | Use specified timezone. one can parse/format the time value in the specified timezone. <br> |
40-
| patterns | []ParseSection | No | - | Only available when using type: multi_format<br>[Parse Section](#Parse-Section)<br> |
40+
| format | string | No | - | Only available when using type: multi_format<br> |
41+
| patterns | []SingleParseSection | No | - | Only available when using type: multi_format<br>[Parse Section](#Parse-Section)<br> |
42+
### Parse Section (single)
43+
| Variable Name | Type | Required | Default | Description |
44+
|---|---|---|---|---|
45+
| type | string | No | - | Parse type: apache2, apache_error, nginx, syslog, csv, tsv, ltsv, json, multiline, none, logfmt<br> |
46+
| expression | string | No | - | Regexp expression to evaluate<br> |
47+
| time_key | string | No | - | Specify time field for event time. If the event doesn't have this field, current time is used.<br> |
48+
| null_value_pattern | string | No | - | Specify null value pattern.<br> |
49+
| null_empty_string | bool | No | - | If true, empty string field is replaced with nil<br> |
50+
| estimate_current_event | bool | No | - | If true, use Fluent::EventTime.now(current time) as a timestamp when time_key is specified.<br> |
51+
| keep_time_key | bool | No | - | If true, keep time field in the record.<br> |
52+
| types | string | No | - | Types casting the fields to proper types example: field1:type, field2:type<br> |
53+
| time_format | string | No | - | Process value using specified format. This is available only when time_type is string<br> |
54+
| time_type | string | No | string | Parse/format value according to this type available values: float, unixtime, string <br> |
55+
| local_time | bool | No | true | Ff true, use local time. Otherwise, UTC is used. This is exclusive with utc. <br> |
56+
| utc | bool | No | false | If true, use UTC. Otherwise, local time is used. This is exclusive with localtime <br> |
57+
| timezone | string | No | nil | Use specified timezone. one can parse/format the time value in the specified timezone. <br> |
4158
| format | string | No | - | Only available when using type: multi_format<br> |
4259
#### Example `Parser` filter configurations
4360
```yaml

pkg/sdk/model/filter/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ type SingleParseSection struct {
137137
// name: demo-flow
138138
//spec:
139139
// filters:
140-
// - parse:
140+
// - parser:
141141
// remove_key_name_field: true
142142
// reserve_data: true
143143
// parse:

pkg/sdk/model/output/elasticsearch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type _hugoElasticsearch interface{}
4444
type _docElasticsearch interface{}
4545

4646
// +name:"Elasticsearch"
47-
// +url:"https://github.com/uken/fluent-plugin-elasticsearch/releases/tag/v4.0.4"
47+
// +url:"https://github.com/uken/fluent-plugin-elasticsearch/releases/tag/v4.0.7"
4848
// +version:"4.0.7"
4949
// +description:"Send your logs to Elasticsearch"
5050
// +status:"GA"

pkg/sdk/model/output/kafka.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type _hugoKafka interface{}
4545
type _docKafka interface{}
4646

4747
// +name:"Kafka"
48-
// +url:"https://github.com/fluent/fluent-plugin-kafka/releases/tag/v0.12.3"
48+
// +url:"https://github.com/fluent/fluent-plugin-kafka/releases/tag/v0.13.0"
4949
// +version:"0.13.0"
5050
// +description:"Send your logs to Kafka"
5151
// +status:"GA"

pkg/sdk/model/output/kinesis_stream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type _hugoKinesisStream interface{}
3838
type _docKinesisStream interface{}
3939

4040
// +name:"Amazon Kinesis"
41-
// +url:"https://github.com/awslabs/aws-fluent-plugin-kinesis/releases/tag/v3.2.0"
41+
// +url:"https://github.com/awslabs/aws-fluent-plugin-kinesis/releases/tag/v3.2.1"
4242
// +version:"3.2.1"
4343
// +description:"Fluent plugin for Amazon Kinesis"
4444
// +status:"GA"

0 commit comments

Comments
 (0)