tomohisaota/fluent-plugin-tail-multiline — pull request #2 by kozy4324 (2013-07-12 04:44:20+00:00)
Title: Support serial number format params

They can be the substitute for format param, and promote few more
maintenanceability than too long format param.

I want to parse the rails log as below.

```
Started GET "/users/" for 127.0.0.1 at 2013-06-14 12:00:04 +0900
Processing by UsersController#index as HTML
Rendered users/index.html.erb within layouts/application (0.5ms)
Completed 200 OK in 821ms (Views: 819.5ms | ActiveRecord: 0.0ms)

Started GET "/users/123/" for 127.0.0.1 at 2013-06-14 12:00:11 +0900
Processing by UsersController#show as HTML
Parameters: {"user_id"=>"123"}
Rendered users/show.html.erb within layouts/application (0.3ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
```

I wrote a such Regexp.

```
format /Started (?[^ ]+) "(?[^"]+)" for (?[^ ]+) at (?[^ ]+ [^ ]+ [^ ]+)\nProcessing by (?[^\u0023]+)\u0023(?[^ ]+) as (?[^ ]+?)\n( Parameters: (?[^ ]+)\n)? Rendered (?