Configuration
Copy and paste to fluent.conf
or td-agent.conf
<source>
type tail
path /var/log/foo/bar.log
pos_file /var/log/td-agent/foo-bar.log.pos
tag foo.bar
format /(?<time>[^ ]* [^ ]*) (?<method>[^ ]*) (?<path>[^ ]*) (?<message>[^ ].*$)/
time_format %F %T,%L
</source>
type tail
path /var/log/foo/bar.log
pos_file /var/log/td-agent/foo-bar.log.pos
tag foo.bar
format /(?<time>[^ ]* [^ ]*) (?<method>[^ ]*) (?<path>[^ ]*) (?<message>[^ ].*$)/
time_format %F %T,%L
</source>
Data Inspector
Attributes
Key | Value |
---|---|
time | 2015/02/25 18:33:06 +0000 |
Records
Key | Value |
---|---|
method | INFO |
path | |
message | capcbsMonitor akka://application/user/daemons/monitor : 91 active thread, 4175691776 байт использовано |