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>\d{4}-\d{1,2}-\d{1,2} \d{1,2}:\d{1,2}:\d{1,2},\d{3}) (?<severity>[^\s]+) \[(?<thread>.*)\] (?<class>[^\s]+) (?<message>.*)/
time_format %Y-%m-%d %H:%M:%S,%N
</source>
type tail
path /var/log/foo/bar.log
pos_file /var/log/td-agent/foo-bar.log.pos
tag foo.bar
format /^(?<time>\d{4}-\d{1,2}-\d{1,2} \d{1,2}:\d{1,2}:\d{1,2},\d{3}) (?<severity>[^\s]+) \[(?<thread>.*)\] (?<class>[^\s]+) (?<message>.*)/
time_format %Y-%m-%d %H:%M:%S,%N
</source>
Data Inspector
Attributes
Key | Value |
---|---|
time | 2021/05/25 14:56:27 +0000 |
Records
Key | Value |
---|---|
severity | DEBUG |
thread | http-nio-8106-exec-9 |
class | org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter |
message | Request is to process authentication |