05f1d04d04
Change-Id: If083debd8531a752d4d250752ed66b922b1b9cd4
30 lines
747 B
Plaintext
30 lines
747 B
Plaintext
<source>
|
|
@type tail
|
|
path /var/log/swift/*.log
|
|
pos_file /var/run/td-agent/devstack-openstack_swift.pos
|
|
tag devstack-swift
|
|
path_key module
|
|
<parse>
|
|
@type none
|
|
</parse>
|
|
read_from_head false
|
|
ignore_repeated_permission_error true
|
|
enable_watch_timer false
|
|
</source>
|
|
<filter devstack-swift>
|
|
@type record_transformer
|
|
enable_ruby true
|
|
<record>
|
|
Hostname ${hostname}
|
|
Logger swift
|
|
programname ${record['module']}
|
|
</record>
|
|
</filter>
|
|
<filter devstack-swift>
|
|
@type parser
|
|
key_name message
|
|
format /^(?<Timestamp>\S+ \S+) (?<Pid>\d+) (?<log_level>\S+) (?<python_module>\S+) (?<Payload>.*)?$/
|
|
time_format %F %T.%L
|
|
reserve_data true
|
|
emit_invalid_record_to_error false
|
|
</filter> |