yanglin 6 gadi atpakaļ
vecāks
revīzija
97f024de26
2 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  1. 3 2
      api/config/main.php
  2. 3 0
      vagrant/nginx/log/logstash_json.log

+ 3 - 2
api/config/main.php

@@ -43,7 +43,6 @@ return [
         'errorHandler' => [
             'errorAction' => 'site/error',
         ],
-        'db' =>   require __DIR__ . '/../../common/config/db-local.php',
 
         'urlManager' =>  [
             'class' => 'yii\web\UrlManager',
@@ -64,7 +63,9 @@ return [
 //                'GET v1/wishorder/<begin_datetime>/<end_datetime>' => 'v1/wishorder/viewbydate',
 //                'GET v1/ebayorder/<begin_datetime>/<end_datetime>' => 'v1/ebayorder/viewbydate',
             ]
-        ]
+        ],
+
+        'db' =>   require __DIR__ . '/../../common/config/db.php'
     ],
     'params' => $params,
 ];

+ 3 - 0
vagrant/nginx/log/logstash_json.log

@@ -1785,3 +1785,6 @@
 { "@timestamp": "12/Jan/2018:20:12:21 +0000", "@fields": { "remote_addr": "172.17.0.1", "remote_user": "-", "body_bytes_sent": "0", "request_time": "0.005", "status": "304", "request": "GET /assets/ba37cb70/jquery.js HTTP/1.0", "request_method": "GET", "http_referrer": "http://ki.logsystem.airent.test.com/", "body_bytes_sent":"0", "http_x_forwarded_for": "172.17.0.1", "http_user_agent": "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:57.0) Gecko/20100101 Firefox/57.0" } }
 { "@timestamp": "12/Jan/2018:20:12:21 +0000", "@fields": { "remote_addr": "172.17.0.1", "remote_user": "-", "body_bytes_sent": "0", "request_time": "0.012", "status": "304", "request": "GET /assets/8b77a3ba/yii.js HTTP/1.0", "request_method": "GET", "http_referrer": "http://ki.logsystem.airent.test.com/", "body_bytes_sent":"0", "http_x_forwarded_for": "172.17.0.1", "http_user_agent": "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:57.0) Gecko/20100101 Firefox/57.0" } }
 { "@timestamp": "12/Jan/2018:20:12:21 +0000", "@fields": { "remote_addr": "172.17.0.1", "remote_user": "-", "body_bytes_sent": "0", "request_time": "0.037", "status": "304", "request": "GET /assets/8a8685df/js/bootstrap.js HTTP/1.0", "request_method": "GET", "http_referrer": "http://ki.logsystem.airent.test.com/", "body_bytes_sent":"0", "http_x_forwarded_for": "172.17.0.1", "http_user_agent": "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:57.0) Gecko/20100101 Firefox/57.0" } }
+{ "@timestamp": "12/Jan/2018:21:33:32 +0000", "@fields": { "remote_addr": "172.17.0.1", "remote_user": "-", "body_bytes_sent": "171", "request_time": "2.313", "status": "200", "request": "GET /api/page?rabbitdata=11&signature=44D027A88F0D44B12E1DF90691B491C0&timestamp=1 HTTP/1.0", "request_method": "GET", "http_referrer": "-", "body_bytes_sent":"171", "http_x_forwarded_for": "172.17.0.1", "http_user_agent": "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:57.0) Gecko/20100101 Firefox/57.0" } }
+{ "@timestamp": "12/Jan/2018:21:48:25 +0000", "@fields": { "remote_addr": "172.17.0.1", "remote_user": "-", "body_bytes_sent": "60513", "request_time": "0.987", "status": "500", "request": "GET /api/page?rabbitdata=11&signature=44D027A88F0D44B12E1DF90691B491C0&timestamp=1 HTTP/1.0", "request_method": "GET", "http_referrer": "-", "body_bytes_sent":"60513", "http_x_forwarded_for": "172.17.0.1", "http_user_agent": "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:57.0) Gecko/20100101 Firefox/57.0" } }
+{ "@timestamp": "12/Jan/2018:21:50:19 +0000", "@fields": { "remote_addr": "172.17.0.1", "remote_user": "-", "body_bytes_sent": "171", "request_time": "2.020", "status": "200", "request": "GET /api/page?rabbitdata=11&signature=44D027A88F0D44B12E1DF90691B491C0&timestamp=1 HTTP/1.0", "request_method": "GET", "http_referrer": "-", "body_bytes_sent":"171", "http_x_forwarded_for": "172.17.0.1", "http_user_agent": "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:57.0) Gecko/20100101 Firefox/57.0" } }