我有一个设备可以发送日志,例如
"<134>Oct 27 20:08:02 bigip tmm2[16485]: Rule /Common/test2 <HTTP_REQUEST>: Received Request for uri '/' from client. Sending to server..."
到td-agent fluentd-0.12.40
。
我的td-agnet.conf如下:
<source>
@type udp
port 20001
bind 0.0.0.0
tag udp.input
format json
</source>
<match **>
@type stdout
</match>
**
与所有消息都匹配吗?但我得到此警告:
2019-10-27 20:08:04 -0700 [warn]: pattern not match: "<134>Oct 27 20:08:02 bigip tmm2[16485]: Rule /Common/test2 <HTTP_REQUEST>: Received Request for uri '/' from client. Sending to server..."
2019-10-27 20:08:04 -0700 fluent.warn: {"message":"pattern not match: \"<134>Oct 27 20:08:02 bigip tmm2[16485]: Rule /Common/test2 <HTTP_REQUEST>: Received Request for uri '/' from client. Sending to server...\""}
为什么?有人可以帮忙吗?