[jira] [Commented] (TS-4947) Collation Server is broken?
[ https://issues.apache.org/jira/browse/TS-4947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15574828#comment-15574828 ] bettydramit commented on TS-4947: - [~zwoop] This patch can be merge into the master? > 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 >Assignee: James Peach >Priority: Critical > Fix For: 7.1.0 > > Time Spent: 0.5h > Remaining Estimate: 0h > > 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='% %<{Cdn-Real-Ip}cqh> - % [%] \"% % > %\" % % \"%<{Referer}cqh>\" \"%<{user-agent}cqh>\" % > % % % % % %' > } > 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)
[jira] [Commented] (TS-4947) Collation Server is broken?
[ https://issues.apache.org/jira/browse/TS-4947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15574442#comment-15574442 ] bettydramit commented on TS-4947: - yeah! Good jobs! It works! > 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 >Assignee: James Peach >Priority: Critical > Fix For: 7.1.0 > > Time Spent: 0.5h > Remaining Estimate: 0h > > 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='% %<{Cdn-Real-Ip}cqh> - % [%] \"% % > %\" % % \"%<{Referer}cqh>\" \"%<{user-agent}cqh>\" % > % % % % % %' > } > 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)
[jira] [Commented] (TS-4947) Collation Server is broken?
[ https://issues.apache.org/jira/browse/TS-4947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15572503#comment-15572503 ] James Peach commented on TS-4947: - Can you check [this pull request|https://github.com/apache/trafficserver/pull/1104]? > 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 >Assignee: James Peach >Priority: Critical > Fix For: 7.1.0 > > Time Spent: 10m > Remaining Estimate: 0h > > 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='% %<{Cdn-Real-Ip}cqh> - % [%] \"% % > %\" % % \"%<{Referer}cqh>\" \"%<{user-agent}cqh>\" % > % % % % % %' > } > 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)
[jira] [Commented] (TS-4947) Collation Server is broken?
[ https://issues.apache.org/jira/browse/TS-4947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15570538#comment-15570538 ] bettydramit commented on TS-4947: - It dosn't work with this patch! It works only for( CollationHosts = '192.168.2.33:8085' ) > 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 >Assignee: James Peach >Priority: Critical > 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='% %<{Cdn-Real-Ip}cqh> - % [%] \"% % > %\" % % \"%<{Referer}cqh>\" \"%<{user-agent}cqh>\" % > % % % % % %' > } > 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)
[jira] [Commented] (TS-4947) Collation Server is broken?
[ https://issues.apache.org/jira/browse/TS-4947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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='% %<{Cdn-Real-Ip}cqh> - % [%] \"% % > %\" % % \"%<{Referer}cqh>\" \"%<{user-agent}cqh>\" % > % % % % % %' > } > 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)
[jira] [Commented] (TS-4947) Collation Server is broken?
[ https://issues.apache.org/jira/browse/TS-4947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15565082#comment-15565082 ] bettydramit commented on TS-4947: - [Oct 11 18:08:24.037] Server {0x2ad041436040} WARNING: /etc/trafficserver/logging.config:5: invalid 'CollationHosts' argument > Collation Server is broken? > --- > > Key: TS-4947 > URL: https://issues.apache.org/jira/browse/TS-4947 > Project: Traffic Server > Issue Type: Bug > Components: Logging >Reporter: bettydramit > > 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='% %<{Cdn-Real-Ip}cqh> - % [%] \"% % > %\" % % \"%<{Referer}cqh>\" \"%<{user-agent}cqh>\" % > % % % % % %' > } > 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)