[ 
https://issues.apache.org/jira/browse/TS-4947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15569235#comment-15569235
 ] 

James Peach commented on TS-4947:
---------------------------------

[~bettydreamit] can you please try this patch:
{noformat}
diff --git a/proxy/logging/LogBindings.cc b/proxy/logging/LogBindings.cc
index ce263a1..cc83919 100644
--- a/proxy/logging/LogBindings.cc
+++ b/proxy/logging/LogBindings.cc
@@ -211,7 +211,10 @@ log_object_add_hosts(lua_State *L, LogObject *log, int 
value, bool top)
       lua_pop(L, 1); // Pop the element.
     }

-    log->add_loghost(lh, false /* take ownership */);
+    if (lh) {
+      log->add_loghost(lh, false /* take ownership */);
+      return true;
+    }
   }

   return false;
{noformat}

> Collation Server is broken?
> ---------------------------
>
>                 Key: TS-4947
>                 URL: https://issues.apache.org/jira/browse/TS-4947
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Logging
>    Affects Versions: 7.0.0
>            Reporter: bettydramit
>             Fix For: 7.1.0
>
>
> from gitmaster(github.com/apache/trafficserver)
> config Collation Client 
> {code:xml}
> CONFIG proxy.config.url_remap.filename STRING remap.config
> CONFIG proxy.config.log.config.filename STRING logging.config
> CONFIG proxy.config.log.collation_host STRING 192.168.2.33
> CONFIG proxy.config.log.collation_secret STRING testlog
> LOCAL proxy.local.log.collation_mode INT 2
> CONFIG proxy.config.log.collation_port INT 8085
> {code}
> config Collation Server
> {code:xml}
> CONFIG proxy.local.log.collation_mode INT 1
> CONFIG proxy.config.log.collation_port INT 8085
> CONFIG proxy.config.log.collation_secret STRING testlog
> {code}
> logging.config
> {code:xml}
> w3c = format {
>   Format='%<cquuh> %<{Cdn-Real-Ip}cqh> - %<caun> [%<cqtn>] \"%<cqhm> %<cquuc> 
> %<cqhv>\" %<pssc> %<psql> \"%<{Referer}cqh>\" \"%<{user-agent}cqh>\" %<crc> 
> %<ttmsf> %<phi> %<sssc> %<cqtr> %<piid> %<pitag>'
> }
> log.ascii {
>   Filename = 'c11',
>   Format = w3c,
>   CollationHosts = { '192.168.2.33:8085' }
> }
> {code}
> It still flush log to local disk not to remote collation server



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to