README.markdown in fluent-plugin-map-0.0.2 vs README.markdown in fluent-plugin-map-0.0.3
- old
+ new
@@ -28,5 +28,18 @@
The parameter "map" can use 3 variables in event log; tag, time, record. The format of time is an integer number of seconds since the Epoch. The format of record is hash.
The config file parses # as the begin of comment. So the "map" value cannot use #{tag} operation.
This plugin can output multi logs by seting multi to true.
+
+If you don't use multi option, you can use key, time, record parameter. The 2 following match directive is same:
+
+ <match tag>
+ type map
+ map ["code." + tag, time, {"code" => record["code"].to_i}]
+ </match>
+ <match tag>
+ type map
+ tag "code." + tag
+ time time
+ record {"code" => record["code"].to_i}
+ </match>