1) input plugins输入
file/http/jdbc/kafka/redis/log4j
file
path:可以用通配符来指定多个;
sincedb_path:指定一个文件,用来追踪当前监听日志的当前位置;
start_position: 从哪开始读取;beginning从头开始,end从追加后的位置开始读取;
2) output plugins输出
hosts:可以定义多个es集群;
index:logstash-%{+YYYY.MM.dd}
document_type:logstash6.0以上的版本,建议不要配置;
3) filter plugins
grok:解析非格式化的数据编程格式化的数据,默认还是匹配单行的日志收集;
match:
4) codec plugins :
multiline:可以匹配多行;
pattern: "pattern, a regexp"
pattern => "^%{TIMESTAMP_ISO08601}"
negate: "true" or "false"
what:"previous" or "next"
previous:则匹配到后,将上一条的数据进行输出;
pattern表达式匹配到且negate为true则表示为多行日志收集;
http://grokdebug.herokuapp.com/
2019-05-05 21:40:54.272 [http-nio-8084-exec-8] INFO [org.zalando.logbook.Logbook:74] [0fb59ff38987e1be,4f70a113eb31d536] - Incoming Request: 80232fe1-3883-4582-a20a-f73d900bfd43
GET http://discovery:8084/house/hot?size=3 HTTP/1.1
x-b3-parentspanid: 0fb59ff38987e1be
x-span-name: http:/house/hot
x-b3-traceid: 0fb59ff38987e1be
x-b3-spanid: 4f70a113eb31d536
x-b3-sampled: 1
host: discovery:8084
connection: Keep-Alive
accept-encoding: gzip,deflate
user-agent: agent
accept: application/json, application/json, application/*+json, application/*+json
2019-05-05 21:40:54.278 [http-nio-8084-exec-8] DEBUG [com.mooc.house.hsrv.mapper.HouseMapper.selectHouse:] [0fb59ff38987e1be,4f70a113eb31d536] - ==> Preparing: select a.id , a.type, a.name, a.price, a.images , a.area , a.beds , a.baths , a.rating , a.remarks , a.properties , a.floor_plan , a.tags , a.create_time , a.city_id , a.community_id , a.address, a.state, b.user_id from house a inner join ( select house_id,user_id from house_user WHERE type = 1 ) b on a.id = b.house_id WHERE state = 1 and id in ( ? ) order by a.create_time desc limit ?, ?
2019-05-05 21:40:54.285 [http-nio-8084-exec-8] DEBUG [com.mooc.house.hsrv.mapper.HouseMapper.selectHouse:] [0fb59ff38987e1be,4f70a113eb31d536] - ==> Parameters: 26(Long), 0(Integer), 3(Integer)
2019-05-05 21:40:54.293 [http-nio-8084-exec-8] DEBUG [com.mooc.house.hsrv.mapper.HouseMapper.selectHouse:] [0fb59ff38987e1be,4f70a113eb31d536] - <== Total: 1
2019-05-05 21:40:54.295 [http-nio-8084-exec-8] INFO [org.zalando.logbook.Logbook:79] [0fb59ff38987e1be,4f70a113eb31d536] - Outgoing Response: 80232fe1-3883-4582-a20a-f73d900bfd43
HTTP/1.1 200 OK
X-Application-Context: house:8084
Content-Length: 1050
Date: Sun, 05 May 2019 13:40:54 GMT
Content-Type: application/json;charset=UTF-8
-------------------------将日志字段转换成对应的表达式-------------------------------
(?m):指可以匹配多行,若没有这个,则只匹配一行;
2019-05-05 21:40:54.272 :%{TIMESTAMP_ISO8601:timestamp}\s
[http-nio-8084-exec-8] :+\[%{DATA:thread}\]\s
INFO :+%{DATA:level}\s
[org.zalando.logbook.Logbook:74] :+\[%{DATA:class}\]\s
[0fb59ff38987e1be,4f70a113eb31d536] :+\[%{DATA:trace},%{DATA:span}\]\s
- Incoming Request: 80232fe1-3883-4582-a20a-f73d900bfd43......:+-\s+%{GREEDYDATA:msg}
vim config/userConfig
#输入配置编写
input {
file {
path => "/application/soft/weifuwu-house/logs/user/house-info*"
sincedb_path => "/application/logstash-6.1.1/sincedb_user"
codec => multiline {
pattern => "^%{TIMESTAMP_ISO8601}"
negate => true
what => "previous"
}
}
}
filter {
#grok将非结构化的数据转换成结构化数据的一个插件
grok {
match => {
"message" => "(?m)%{TIMESTAMP_ISO8601:timestamp}\s+\[%{DATA:thread}\]\s+%{DATA:level}\s+\[%{DATA:class}\]\s+\[%{DATA:trace},%{DATA:span}\]\s+-\s+%{GREEDYDATA:msg}"
}
}
#结构化输出后,还需要增加一些字段,可以使用mutate插件
mutate {
"add_field" => {"appname" => "user"}
}
}
#输出配置编写
output {
elasticsearch {
hosts => ["192.168.2.10:9200"]
index => "house-info-%{+YYYY.MM.dd}"
}
#控制台上也输出,可以方便查看、调试
stdout {
codec => "rubydebug"
}
}
vim config/houseConfig
#输入配置编写
input {
file {
path => "/application/soft/weifuwu-house/logs/house/house-info*"
sincedb_path => "/application/logstash-6.1.1/sincedb_house"
codec => multiline {
pattern => "^%{TIMESTAMP_ISO8601}"
negate => true
what => "previous"
}
}
}
filter {
#grok将非结构化的数据转换成结构化数据的一个插件
grok {
match => {
"message" => "(?m)%{TIMESTAMP_ISO8601:timestamp}\s+\[%{DATA:thread}\]\s+%{DATA:level}\s+\[%{DATA:class}\]\s+\[%{DATA:trace},%{DATA:span}\]\s+-\s+%{GREEDYDATA:msg}"
}
}
#结构化输出后,还需要增加一些字段,可以使用mutate插件
mutate {
"add_field" => {"appname" => "house"}
}
}
#输出配置编写
output {
elasticsearch {
hosts => ["192.168.2.10:9200"]
index => "house-info-%{+YYYY.MM.dd}"
}
#控制台上也输出,可以方便查看、调试
stdout {
codec => "rubydebug"
}
}
vim config/apiConfig
#输入配置编写
input {
file {
path => "/application/soft/weifuwu-house/logs/api/house-info*"
sincedb_path => "/application/logstash-6.1.1/sincedb_api"
codec => multiline {
pattern => "^%{TIMESTAMP_ISO8601}"
negate => true
what => "previous"
}
}
}
filter {
#grok将非结构化的数据转换成结构化数据的一个插件
grok {
match => {
"message" => "(?m)%{TIMESTAMP_ISO8601:timestamp}\s+\[%{DATA:thread}\]\s+%{DATA:level}\s+\[%{DATA:class}\]\s+\[%{DATA:trace},%{DATA:span}\]\s+-\s+%{GREEDYDATA:msg}"
}
}
#结构化输出后,还需要增加一些字段,可以使用mutate插件
mutate {
"add_field" => {"appname" => "api"}
}
}
#输出配置编写
output {
elasticsearch {
hosts => ["192.168.2.10:9200"]
index => "house-info-%{+YYYY.MM.dd}"
}
#控制台上也输出,可以方便查看、调试
stdout {
codec => "rubydebug"
}
}
在启动logstash之前,需要先启动eureka/zipkin/user/house/comment/api-gateway微服务;
# 日志输出到nohup文件中,可以用less hohup进行查看;
nohup bin/logstash -f houseConfig &
/application/logstash-6.1.1/bin/logstash -f /application/logstash-6.1.1/config/houseConfig
# 启动日志输出到指定位置
nohup /application/logstash-6.1.1/bin/logstash -f /application/logstash-6.1.1/config/userConfig --path.data=/application/logstash-6.1.1/userdata &> nohup1.out &
#启动日志输出到控制台
/application/logstash-6.1.1/bin/logstash -f /application/logstash-6.1.1/config/userConfig --path.data=/application/logstash-6.1.1/userdata
/application/logstash-6.1.1/bin/logstash -f /application/logstash-6.1.1/config/apiConfig --path.data=/application/logstash-6.1.1/apidata
访问项目主页http://192.168.2.10:8080/index,进行相关操作,可以看到有对应的日志输出;
{
"@version" => "1",
"level" => "INFO",
"trace" => "b8c1b7d3398cd623",
"host" => "discovery",
"class" => "org.zalando.logbook.Logbook:79",
"@timestamp" => 2019-05-05T19:30:03.366Z,
"thread" => "http-nio-8084-exec-7",
"message" => "2019-05-06 03:29:26.040 [http-nio-8084-exec-7] INFO [org.zalando.logbook.Logbook:79] [b8c1b7d3398cd623,6d759dea0421fcd2] - Outgoing Response: 2f9ab6e8-8ca4-42c5-a620-a6d51ae7aed3\nHTTP/1.1 200 OK\nX-Application-Context: house:8084\nContent-Length: 5899\nDate: Sun, 05 May 2019 19:29:26 GMT\nContent-Type: application/json;charset=UTF-8\n{\"code\":0,\"msg\":\"OK\",\"result\":[{\"address\":\"中北后海面一号\",\"area\":400,\"baths\":3,\"beds\":3,\"bookmarked\":false,\"cityId\":1,\"communityId\":3,\"createTime\":1515168000000,\"featureList\":[\"满五年\",\"满两年\",\"采光好\",\"高楼层\",\"环境好\",\"价格合理\",\"楼龄新\",\"带阳台\",\"税少\",\"得房率高\",\"临地铁\"],\"firstImg\":\"http://127.0.0.1:8081/images/1500801115/property-09.jpg\",\"floorPlan\":\"\",\"floorPlanList\":[],\"id\":26,\"imageList\":[\"http://127.0.0.1:8081/images/1500801115/property-09.jpg\",\"http://127.0.0.1:8081/images/1500801115/property-10.jpg\",\"http://127.0.0.1:8081/images/1500801115/property-11.jpg\"],\"images\":\"/1500801115/property-09.jpg,/1500801115/property-10.jpg,/1500801115/property-11.jpg\",\"name\":\"中央广场3层大四居\",\"price\":500,\"priceStr\":\"500万\",\"properties\":\"满五年,满两年,采光好,高楼层,环境好,价格合理,楼龄新,带阳台,税少,得房率高,临地铁\",\"rating\":5.0,\"remarks\":\"中央广场3层大四居豪华装修\",\"roundRating\":5,\"sort\":\"time_desc\",\"state\":1,\"tags\":\"\",\"type\":1,\"userId\":38},{\"address\":\"\\b清河中街\",\"area\":299,\"baths\":3,\"beds\":3,\"bookmarked\":false,\"cityId\":1,\"communityId\":7,\"createTime\":1515168000000,\"featureList\":[\"满两年\",\"南北通透\",\"高楼层\",\"环境好\",\"楼龄新\",\"带阳台\",\"得房率高\",\"临地铁\"],\"firstImg\":\"http://127.0.0.1:8081/images/1515253220/property-13.jpg\",\"floorPlan\":\"/1515253246/floor-plan-01.jpg\",\"floorPlanList\":[\"http://127.0.0.1:8081/images/1515253246/floor-plan-01.jpg\"],\"id\":27,\"imageList\":[\"http://127.0.0.1:8081/images/1515253220/property-13.jpg\",\"http://127.0.0.1:8081/images/1515253220/property-12.jpg\",\"http://127.0.0.1:8081/images/1515253220/property-11.jpg\"],\"images\":\"/1515253220/property-13.jpg,/1515253220/property-12.jpg,/1515253220/property-11.jpg\",\"name\":\"北街嘉园 全南向 南北通透\",\"price\":300,\"priceStr\":\"300万\",\"properties\":\"满两年,南北通透,高楼层,环境好,楼龄新,带阳台,得房率高,临地铁\",\"rating\":0.0,\"remarks\":\"北街嘉园 全南向 南北通透\",\"roundRating\":0,\"sort\":\"time_desc\",\"state\":1,\"tags\":\"\",\"type\":1,\"userId\":38},{\"address\":\"清河中街\",\"area\":130,\"baths\":2,\"beds\":2,\"bookmarked\":false,\"cityId\":1,\"communityId\":4,\"createTime\":1494172800000,\"featureList\":[\"得房率高\",\"临地铁\",\"户型好\",\"没有遮挡\",\"落地窗\",\"精装修\"],\"firstImg\":\"http://127.0.0.1:8081/images/1494256315/property-12.jpg\",\"floorPlan\":\"/1494256315/floor-plan-01.jpg,/1494256315/floor-plan-02.jpg\",\"floorPlanList\":[\"http://127.0.0.1:8081/images/1494256315/floor-plan-01.jpg\",\"http://127.0.0.1:8081/images/1494256315/floor-plan-02.jpg\"],\"id\":25,\"imageList\":[\"http://127.0.0.1:8081/images/1494256315/property-12.jpg\",\"http://127.0.0.1:8081/images/1494256315/property-13.jpg\"],\"images\":\"/1494256315/property-12.jpg,/1494256315/property-13.jpg\",\"name\":\"\\b橡树湾 南北通透 三居室\",\"price\":800,\"priceStr\":\"800万\",\"properties\":\"得房率高,临地铁,户型好,没有遮挡,落地窗,精装修\",\"rating\":5.0,\"remarks\":\"\\b橡树湾 南北通透\\b橡树湾 南北通透\\b橡树湾 南北通透\\b橡树湾 南北通透\",\"roundRating\":5,\"sort\":\"time_desc\",\"state\":1,\"tags\":\"\",\"type\":2,\"userId\":25},{\"address\":\"西城区\",\"area\":140,\"baths\":2,\"beds\":2,\"bookmarked\":false,\"cityId\":1,\"communityId\":5,\"createTime\":1493395200000,\"featureList\":[\"南北通透\",\"环境好\",\"带阳台\"],\"firstImg\":\"http://127.0.0.1:8081/images/1493432771/property-11.jpg\",\"floorPlan\":\"/1493432771/floor-plan-01.jpg,/1493432771/floor-plan-02.jpg\",\"floorPlanList\":[\"http://127.0.0.1:8081/images/1493432771/floor-plan-01.jpg\",\"http://127.0.0.1:8081/images/1493432771/floor-plan-02.jpg\"],\"id\":24,\"imageList\":[\"http://127.0.0.1:8081/images/1493432771/property-11.jpg\",\"http://127.0.0.1:8081/images/1493432771/property-12.jpg\",\"http://127.0.0.1:8081/images/1493432771/property-13.jpg\"],\"images\":\"/1493432771/property-11.jpg,/1493432771/property-12.jpg,/1493432771/property-13.jpg\",\"name\":\"阳光丽景 三面采光 高楼层\",\"price\":140,\"priceStr\":\"140万\",\"properties\":\"南北通透,环境好,带阳台\",\"rating\":4.0,\"remarks\":\"阳光丽景 三面采光 高楼层\",\"roundRating\":4,\"sort\":\"time_desc\",\"state\":1,\"tags\":\"\",\"type\":1,\"userId\":7},{\"address\":\"西山华府\",\"area\":120,\"baths\":12,\"beds\":2,\"bookmarked\":false,\"cityId\":1,\"communityId\":1,\"createTime\":1493308800000,\"featureList\":[\"得房率高\",\"户型好\",\"落地窗\"],\"firstImg\":\"http://127.0.0.1:8081/images/1493370993/property-07.jpg\",\"floorPlan\":\"\",\"floorPlanList\":[],\"id\":22,\"imageList\":[\"http://127.0.0.1:8081/images/1493370993/property-07.jpg\",\"http://127.0.0.1:8081/images/1493370999/property-08.jpg\"],\"images\":\"/1493370993/property-07.jpg,/1493370999/property-08.jpg\",\"name\":\"西山华府 120平\",\"price\":600,\"priceStr\":\"600万\",\"properties\":\"得房率高,户型好,落地窗\",\"rating\":5.0,\"remarks\":\"西山华府 120平西山华府 120平西山华府 120平西山华府 120平西山华府 120平\",\"roundRating\":5,\"sort\":\"time_desc\",\"state\":1,\"tags\":\"\",\"type\":1,\"userId\":7},{\"address\":\"\\b清河中街\",\"area\":120,\"baths\":2,\"beds\":2,\"bookmarked\":false,\"cityId\":1,\"communityId\":2,\"createTime\":1493308800000,\"featureList\":[\"满五年\",\"采光好\",\"价格合理\",\"税少\",\"学区房\"],\"firstImg\":\"http://127.0.0.1:8081/images/1493381459/property-detail-01.jpg\",\"floorPlan\":\"\",\"floorPlanList\":[],\"id\":23,\"imageList\":[\"http://127.0.0.1:8081/images/1493381459/property-detail-01.jpg\",\"http://127.0.0.1:8081/images/1493381460/property-detail-02.jpg\",\"http://127.0.0.1:8081/images/1493381462/property-detail-03.jpg\"],\"images\":\"/1493381459/property-detail-01.jpg,/1493381460/property-detail-02.jpg,/1493381462/property-detail-03.jpg\",\"name\":\"万柳书苑 180平 南北通透\",\"price\":800,\"priceStr\":\"800万\",\"properties\":\"满五年,采光好,价格合理,税少,学区房\",\"rating\":5.0,\"remarks\":\"万柳书苑 180平 南北通透\",\"roundRating\":5,\"sort\":\"time_desc\",\"state\":1,\"tags\":\"\",\"type\":1,\"userId\":7}]}",
"tags" => [
[0] "multiline"
],
"appname" => "house",
"msg" => "Outgoing Response: 2f9ab6e8-8ca4-42c5-a620-a6d51ae7aed3\nHTTP/1.1 200 OK\nX-Application-Context: house:8084\nContent-Length: 5899\nDate: Sun, 05 May 2019 19:29:26 GMT\nContent-Type: application/json;charset=UTF-8\n{\"code\":0,\"msg\":\"OK\",\"result\":[{\"address\":\"中北后海面一号\",\"area\":400,\"baths\":3,\"beds\":3,\"bookmarked\":false,\"cityId\":1,\"communityId\":3,\"createTime\":1515168000000,\"featureList\":[\"满五年\",\"满两年\",\"采光好\",\"高楼层\",\"环境好\",\"价格合理\",\"楼龄新\",\"带阳台\",\"税少\",\"得房率高\",\"临地铁\"],\"firstImg\":\"http://127.0.0.1:8081/images/1500801115/property-09.jpg\",\"floorPlan\":\"\",\"floorPlanList\":[],\"id\":26,\"imageList\":[\"http://127.0.0.1:8081/images/1500801115/property-09.jpg\",\"http://127.0.0.1:8081/images/1500801115/property-10.jpg\",\"http://127.0.0.1:8081/images/1500801115/property-11.jpg\"],\"images\":\"/1500801115/property-09.jpg,/1500801115/property-10.jpg,/1500801115/property-11.jpg\",\"name\":\"中央广场3层大四居\",\"price\":500,\"priceStr\":\"500万\",\"properties\":\"满五年,满两年,采光好,高楼层,环境好,价格合理,楼龄新,带阳台,税少,得房率高,临地铁\",\"rating\":5.0,\"remarks\":\"中央广场3层大四居豪华装修\",\"roundRating\":5,\"sort\":\"time_desc\",\"state\":1,\"tags\":\"\",\"type\":1,\"userId\":38},{\"address\":\"\\b清河中街\",\"area\":299,\"baths\":3,\"beds\":3,\"bookmarked\":false,\"cityId\":1,\"communityId\":7,\"createTime\":1515168000000,\"featureList\":[\"满两年\",\"南北通透\",\"高楼层\",\"环境好\",\"楼龄新\",\"带阳台\",\"得房率高\",\"临地铁\"],\"firstImg\":\"http://127.0.0.1:8081/images/1515253220/property-13.jpg\",\"floorPlan\":\"/1515253246/floor-plan-01.jpg\",\"floorPlanList\":[\"http://127.0.0.1:8081/images/1515253246/floor-plan-01.jpg\"],\"id\":27,\"imageList\":[\"http://127.0.0.1:8081/images/1515253220/property-13.jpg\",\"http://127.0.0.1:8081/images/1515253220/property-12.jpg\",\"http://127.0.0.1:8081/images/1515253220/property-11.jpg\"],\"images\":\"/1515253220/property-13.jpg,/1515253220/property-12.jpg,/1515253220/property-11.jpg\",\"name\":\"北街嘉园 全南向 南北通透\",\"price\":300,\"priceStr\":\"300万\",\"properties\":\"满两年,南北通透,高楼层,环境好,楼龄新,带阳台,得房率高,临地铁\",\"rating\":0.0,\"remarks\":\"北街嘉园 全南向 南北通透\",\"roundRating\":0,\"sort\":\"time_desc\",\"state\":1,\"tags\":\"\",\"type\":1,\"userId\":38},{\"address\":\"清河中街\",\"area\":130,\"baths\":2,\"beds\":2,\"bookmarked\":false,\"cityId\":1,\"communityId\":4,\"createTime\":1494172800000,\"featureList\":[\"得房率高\",\"临地铁\",\"户型好\",\"没有遮挡\",\"落地窗\",\"精装修\"],\"firstImg\":\"http://127.0.0.1:8081/images/1494256315/property-12.jpg\",\"floorPlan\":\"/1494256315/floor-plan-01.jpg,/1494256315/floor-plan-02.jpg\",\"floorPlanList\":[\"http://127.0.0.1:8081/images/1494256315/floor-plan-01.jpg\",\"http://127.0.0.1:8081/images/1494256315/floor-plan-02.jpg\"],\"id\":25,\"imageList\":[\"http://127.0.0.1:8081/images/1494256315/property-12.jpg\",\"http://127.0.0.1:8081/images/1494256315/property-13.jpg\"],\"images\":\"/1494256315/property-12.jpg,/1494256315/property-13.jpg\",\"name\":\"\\b橡树湾 南北通透 三居室\",\"price\":800,\"priceStr\":\"800万\",\"properties\":\"得房率高,临地铁,户型好,没有遮挡,落地窗,精装修\",\"rating\":5.0,\"remarks\":\"\\b橡树湾 南北通透\\b橡树湾 南北通透\\b橡树湾 南北通透\\b橡树湾 南北通透\",\"roundRating\":5,\"sort\":\"time_desc\",\"state\":1,\"tags\":\"\",\"type\":2,\"userId\":25},{\"address\":\"西城区\",\"area\":140,\"baths\":2,\"beds\":2,\"bookmarked\":false,\"cityId\":1,\"communityId\":5,\"createTime\":1493395200000,\"featureList\":[\"南北通透\",\"环境好\",\"带阳台\"],\"firstImg\":\"http://127.0.0.1:8081/images/1493432771/property-11.jpg\",\"floorPlan\":\"/1493432771/floor-plan-01.jpg,/1493432771/floor-plan-02.jpg\",\"floorPlanList\":[\"http://127.0.0.1:8081/images/1493432771/floor-plan-01.jpg\",\"http://127.0.0.1:8081/images/1493432771/floor-plan-02.jpg\"],\"id\":24,\"imageList\":[\"http://127.0.0.1:8081/images/1493432771/property-11.jpg\",\"http://127.0.0.1:8081/images/1493432771/property-12.jpg\",\"http://127.0.0.1:8081/images/1493432771/property-13.jpg\"],\"images\":\"/1493432771/property-11.jpg,/1493432771/property-12.jpg,/1493432771/property-13.jpg\",\"name\":\"阳光丽景 三面采光 高楼层\",\"price\":140,\"priceStr\":\"140万\",\"properties\":\"南北通透,环境好,带阳台\",\"rating\":4.0,\"remarks\":\"阳光丽景 三面采光 高楼层\",\"roundRating\":4,\"sort\":\"time_desc\",\"state\":1,\"tags\":\"\",\"type\":1,\"userId\":7},{\"address\":\"西山华府\",\"area\":120,\"baths\":12,\"beds\":2,\"bookmarked\":false,\"cityId\":1,\"communityId\":1,\"createTime\":1493308800000,\"featureList\":[\"得房率高\",\"户型好\",\"落地窗\"],\"firstImg\":\"http://127.0.0.1:8081/images/1493370993/property-07.jpg\",\"floorPlan\":\"\",\"floorPlanList\":[],\"id\":22,\"imageList\":[\"http://127.0.0.1:8081/images/1493370993/property-07.jpg\",\"http://127.0.0.1:8081/images/1493370999/property-08.jpg\"],\"images\":\"/1493370993/property-07.jpg,/1493370999/property-08.jpg\",\"name\":\"西山华府 120平\",\"price\":600,\"priceStr\":\"600万\",\"properties\":\"得房率高,户型好,落地窗\",\"rating\":5.0,\"remarks\":\"西山华府 120平西山华府 120平西山华府 120平西山华府 120平西山华府 120平\",\"roundRating\":5,\"sort\":\"time_desc\",\"state\":1,\"tags\":\"\",\"type\":1,\"userId\":7},{\"address\":\"\\b清河中街\",\"area\":120,\"baths\":2,\"beds\":2,\"bookmarked\":false,\"cityId\":1,\"communityId\":2,\"createTime\":1493308800000,\"featureList\":[\"满五年\",\"采光好\",\"价格合理\",\"税少\",\"学区房\"],\"firstImg\":\"http://127.0.0.1:8081/images/1493381459/property-detail-01.jpg\",\"floorPlan\":\"\",\"floorPlanList\":[],\"id\":23,\"imageList\":[\"http://127.0.0.1:8081/images/1493381459/property-detail-01.jpg\",\"http://127.0.0.1:8081/images/1493381460/property-detail-02.jpg\",\"http://127.0.0.1:8081/images/1493381462/property-detail-03.jpg\"],\"images\":\"/1493381459/property-detail-01.jpg,/1493381460/property-detail-02.jpg,/1493381462/property-detail-03.jpg\",\"name\":\"万柳书苑 180平 南北通透\",\"price\":800,\"priceStr\":\"800万\",\"properties\":\"满五年,采光好,价格合理,税少,学区房\",\"rating\":5.0,\"remarks\":\"万柳书苑 180平 南北通透\",\"roundRating\":5,\"sort\":\"time_desc\",\"state\":1,\"tags\":\"\",\"type\":1,\"userId\":7}]}",
"timestamp" => "2019-05-06 03:29:26.040",
"span" => "6d759dea0421fcd2",
"path" => "/application/soft/weifuwu-house/logs/house/house-info.log"
}
{
"@version" => "1",
"level" => "INFO",
"trace" => "06e3227a6812700b",
"host" => "discovery",
"class" => "org.zalando.logbook.Logbook:74",
"@timestamp" => 2019-05-05T19:30:03.369Z,
"thread" => "http-nio-8084-exec-8",
"message" => "2019-05-06 03:30:03.184 [http-nio-8084-exec-8] INFO [org.zalando.logbook.Logbook:74] [06e3227a6812700b,2b2853e7f2039731] - Incoming Request: d2d74a52-af0e-40e6-a9a2-cd94b244231f\nGET http://discovery:8084/house/lastest HTTP/1.1\nx-b3-parentspanid: 06e3227a6812700b\nx-span-name: http:/house/lastest\nx-b3-traceid: 06e3227a6812700b\nx-b3-spanid: 2b2853e7f2039731\nx-b3-sampled: 1\nhost: discovery:8084\nconnection: Keep-Alive\naccept-encoding: gzip,deflate\nuser-agent: agent\naccept: application/json, application/json, application/*+json, application/*+json",
"tags" => [
[0] "multiline"
],
"appname" => "house",
"msg" => "Incoming Request: d2d74a52-af0e-40e6-a9a2-cd94b244231f\nGET http://discovery:8084/house/lastest HTTP/1.1\nx-b3-parentspanid: 06e3227a6812700b\nx-span-name: http:/house/lastest\nx-b3-traceid: 06e3227a6812700b\nx-b3-spanid: 2b2853e7f2039731\nx-b3-sampled: 1\nhost: discovery:8084\nconnection: Keep-Alive\naccept-encoding: gzip,deflate\nuser-agent: agent\naccept: application/json, application/json, application/*+json, application/*+json",
"timestamp" => "2019-05-06 03:30:03.184",
"span" => "2b2853e7f2039731",
"path" => "/application/soft/weifuwu-house/logs/house/house-info.log"
}