路由器(RTR)日志的消息格式?

时间:2017-03-02 17:28:49

标签: logging ibm-cloud

我正在尝试诊断问题。有没有人知道Bluemix中RTR日志消息的格式是什么?

例如:

somehost.mybluemix.net - [02/03/2017:16:00:23.428 +0000] "GET / HTTP/1.1" 200 0 306 "-" "-" 44.44.44.44:4444 x_forwarded_for:"55.5.55.55" x_forwarded_proto:"http" vcap_request_id:abc-123 response_time:0.005884674 app_id:abc-123 x_global_transaction_id:"55555555"

1 个答案:

答案 0 :(得分:0)

从v217开始,格式为:

<hostname> - [<time>] "<verb> <path> <http_spec>" <status> <request_bytes_received> <body_bytes_sent> <referer> <http_user_agent> x_forwarded_for:<x_forwarded_for> x_forwarded_proto:<x_forwarded_proto> vcap_request_id:<vcap_request_id> response_time:<response_time> app_id:<app_id>

点击此处查看旧版本:https://github.com/cloudfoundry-community/logsearch-for-cloudfoundry/blob/ce1f81256094eba25368985fa08938631ef1a969/src/logsearch-config/src/logstash-filters/snippets/doppler.conf