Skip to content

Commit 56d78b6

Browse files
author
voidPtr
authored
Update README.md
name change from jsonify to keyvalue-parser
1 parent af40315 commit 56d78b6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#fluent-plugin-jsonify
1+
#fluent-plugin-keyvalue-parser
22

33
[Fluent](http://www.fluentd.org/) parser plugin for key:value formatted logs.
44

55

66
##Installation
77

88
```shell
9-
$ td-agent-gem install fluent-plugin-jsonify
9+
$ td-agent-gem install fluent-plugin-keyvalue-parser
1010
```
1111

1212
##How to use
@@ -22,14 +22,14 @@ Edit `/etc/td-agent/td-agent.conf` file.
2222
pair_delimiter ","
2323
key_value_seperator "="
2424
pos_file /var/run/td-agent/netscreen-log.pos
25-
format jsonify
25+
format keyvalue
2626
</source>
2727
```
2828
* with parser plugin
2929
```conf
3030
<filter tag>
3131
type parser
32-
format jsonify
32+
format keyvalue
3333
pair_delimiter ","
3434
key_value_seperator "="
3535
key_name keyToParse
@@ -93,12 +93,12 @@ will be parsed as
9393

9494
{"devname":"FT6H","service":"NETBIOS","(NS) proto":"6","src zone":"Trust","dst zone":"Untrust"}
9595
```
96-
in second case where key *"service"* only received first part of its value, becouse value not quoted and delimiter(here space) occured in value.
96+
in second case, key *"service"* only received first part of its value, becouse value not quoted and delimiter(here space) occured in the value.
9797

98-
Also next key *"proto"* is wrongly taken as *"(NS) proto"*.
98+
Also next key *"proto"* is wrongly parsed as *"(NS) proto"*.
9999

100-
to overcome this problem we can use,
100+
to rectify this problem, we can use,
101101

102-
`adjustment_rules {"service":"NETBIOS \\(.*\\)"}` in configuration.
102+
`adjustment_rules {"service":"NETBIOS \\(.*\\)"}` in configuration.
103103

104-
this will parse *service* key with value containing *NETBIOS(NS)* whenever it occures.
104+
this will parse *service* key with a value containing *NETBIOS (NS)* whenever it occures.

0 commit comments

Comments
 (0)