@nalan90
2018-12-20T17:45:27.000000Z
字数 4848
阅读 806
环球易购
<script type="text/javascript">document.write('<a style="display:block;width:100%;height:1px;" class="aff-ad-none"></a>');window.AFF_ONLOAD = window.AFF_ONLOAD || [];window.AFF_ONLOAD.push({lkid:"18630571",affid:"10064574",size:"120*600",type:"1",uid:"170134",language:"en",web_id:"45",version:110});var aff_s = document.createElement("script"),aff_h = document.getElementsByTagName("head")[0];aff_s.charset = "utf-8";aff_s.async = !0;aff_s.src = "https://js.affasi.com/affasi_js.min.js";aff_h.insertBefore(aff_s, aff_h.firstChild);</script>
https://json.affasi.com/shareBanner/jsonFile/70a038bef3bda72b0c1eee61b3661bd1.json?_=1545184804440
{
"img_advert": {
"content": [
{
"id": "4056",
"s3_img_url": "https://img.affasi.com/sharebanner/imgfile/2018-05-07/5aefca579a87c.jpg",
"jump_url": "https://www.zaful.com/promotion-mothers-day-sale-special-1910.html",
"title_name": "Mother's Day Sale",
"language_code": "en",
"old_price": "",
"new_price": "",
"sort": "1000000",
"web_id": "45"
},
{
"id": "9604",
"s3_img_url": "https://img.affasi.com/sharebanner/imgfile/2018-08-31/5b88ef1ae6bd2.jpg",
"jump_url": "https://www.zaful.com/promotion-sporty-styles-special-2127.html",
"title_name": "Sporty Outfits Sale",
"language_code": "en",
"old_price": "",
"new_price": "",
"sort": "1000000",
"web_id": "45"
},
{
"id": "11184",
"s3_img_url": "https://img.affasi.com/sharebanner/imgfile/2018-09-28/5bad8c68677a9.jpg",
"jump_url": "https://www.zaful.com/new-user-offer.html",
"title_name": "New User Offer",
"language_code": "en",
"old_price": "",
"new_price": "",
"sort": "1000000",
"web_id": "45"
},
{
"id": "11606",
"s3_img_url": "https://img.affasi.com/sharebanner/imgfile/2018-10-05/5bb73aba7d0ea.jpg",
"jump_url": "https://www.zaful.com/promotion-f-w-18-fashion-trends-sale-51.html",
"title_name": "Fall & Winter Fashion Trends",
"language_code": "en",
"old_price": "",
"new_price": "",
"sort": "1000000",
"web_id": "45"
},
{
"id": "12469",
"s3_img_url": "https://img.affasi.com/sharebanner/imgfile/2018-10-26/5bd26eb13cabe.jpg",
"jump_url": "https://www.zaful.com/promotion/mega-sale-zone-786.html",
"title_name": "Mega Sale Zone: Down To $0.99",
"language_code": "en",
"old_price": "",
"new_price": "",
"sort": "1000000",
"web_id": "45"
},
]
}
}
http://dmp-admin.gw-ec.com/logsss/1.gif?D_P_ig=https://img.affasi.com/sharebanner/imgfile/2018-12-12/5c10704889a1a.jpg&D_P_ad=https://www.zaful.com/promotion/crazy-12-12-sale.html?lkid=18630598&scid=14900&D_P_f=d96dd2e096de046c95c8e4b6b500f5b2&uid=170134&&D_P_ad_p=1&D_P_t=2&D_P_r=&D_P_pt=Title&D_P_c_u=http://localhost:63342/affiliate/test.html?_ijt=67p0k1529tdpnt0nk3pde8he5u&D_P_L_C=false&D_P_sh=1080&D_P_sw=1920&D_P_l=en&D_P_pf=MacIntel&D_P_ex=Chrome&D_P_wi=45&D_P_c_t=1545184805938&D_P_f=d96dd2e096de046c95c8e4b6b500f5b2
https://www.zaful.com/promotion/crazy-12-12-sale.html?lkid=18630598&scid=14900&D_P_f=d96dd2e096de046c95c8e4b6b500f5b2&uid=170134&
说明:仅当cookie中存在linkid,浏览购物车页面才会上报数据
https://affiliate.zaful.com/?data=[{"link_id":18644145,"goods_sku":"298913402","shop_price":"21.20","add_time":"1545189208","user_id":"19582327","cart_id":"185090692","quantity":"1"},{"link_id":18644145,"goods_sku":"299088101","shop_price":"14.99","add_time":"1545189040","user_id":"19582327","cart_id":"185090127","quantity":"1"}]
{
"timestamp": "2018-12-19T03:24:31+00:00",
"version": "1",
"client": "76.108.19.156",
"remote": "172.31.63.151",
"request": "GET /?data=[{%22link_id%22:243192,%22goods_sku%22:%22274725401%22,%22shop_price%22:%2212.99%22,%22add_time%22:%221545188919%22,%22user_id%22:%220%22,%22cart_id%22:%22185089763%22,%22quantity%22:%221%22},{%22link_id%22:243192,%22goods_sku%22:%22291519807%22,%22shop_price%22:%229.99%22,%22add_time%22:%221545187886%22,%22user_id%22:%220%22,%22cart_id%22:%22185086606%22,%22quantity%22:%221%22}] HTTP/1.1",
"status": "200",
"domain": "affiliate.zaful.com",
"host": "172.31.21.200",
"size": 2513,
"responsetime": 0.014,
"upstreamresponsetime": 0.014,
"referer": "https://cartm.zaful.com/shopping-cart.html",
"ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/16B92 Instagram 74.0.0.17.99 (iPhone9,4; iOS 12_1; en_FR; en; scale=2.61; gamut=wide; 1080x1920; 134173980)",
"SESSIONID": "-",
"ORIGINDC": "2",
"COUNTRY_CODE": "US",
"CONTINENT": "NA",
"cachestatus": "-"
}
$ cat /etc/logstash/conf.d/shipper-nginx.conf
input {
file {
type => "nginx-access"
path => ["/usr/local/ver01/tengine/logs/*json.log"]
start_position => "beginning"
codec => "json"
}
}
output {
if [type] == "nginx-access" {
redis {
# host => "affiliate-redis-001.mczgdb.0001.use1.cache.amazonaws.com"
host => "affiliate-redis.mczgdb.ng.0001.use1.cache.amazonaws.com"
data_type => "list"
key => "nginx-access"
# password => "6e1KWyC29w"
port => "6379"
}
}
# stdout {
# codec => rubydebug
# }
}