You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/03/07 22:29:48 UTC

[GitHub] [incubator-apisix] Akayeshmantha opened a new pull request #1221: adding tcp logger.[Work not finished yet]

Akayeshmantha opened a new pull request #1221: adding tcp logger.[Work not finished yet]
URL: https://github.com/apache/incubator-apisix/pull/1221
 
 
   ### Summary
   
   Adding support to tcp logger plugin.
   
   ### Full changelog
   
   Started working on tcp logger plugin
   
   Referring these 2 repos :- https://github.com/openresty/lua-nginx-module#udpsocksetpeername
   https://github.com/fluent/fluent-logger-node
   
   I am more familiar with node.js so I thought it would help me.
   
   ### Issues resolved
   
   Fix #1220
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] Akayeshmantha commented on issue #1221: Adding tcp logger.

Posted by GitBox <gi...@apache.org>.
Akayeshmantha commented on issue #1221: Adding tcp logger.
URL: https://github.com/apache/incubator-apisix/pull/1221#issuecomment-598273328
 
 
   Finally thanks @moonming 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] moonming commented on issue #1221: Adding tcp logger.

Posted by GitBox <gi...@apache.org>.
moonming commented on issue #1221: Adding tcp logger.
URL: https://github.com/apache/incubator-apisix/pull/1221#issuecomment-598163064
 
 
   @Akayeshmantha  the test case 5 will connect tcp log server `127.0.0.1:5044`, which not exist, so it will fail.
   you can mock tcp log server like this: https://github.com/apache/incubator-apisix/blob/master/t/APISIX.pm#L107

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] Akayeshmantha edited a comment on issue #1221: Adding tcp logger.

Posted by GitBox <gi...@apache.org>.
Akayeshmantha edited a comment on issue #1221: Adding tcp logger.
URL: https://github.com/apache/incubator-apisix/pull/1221#issuecomment-598273328
 
 
   Finally thanks @moonming @membphis . It's ready to review 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] Akayeshmantha commented on issue #1221: Adding tcp logger.

Posted by GitBox <gi...@apache.org>.
Akayeshmantha commented on issue #1221: Adding tcp logger.
URL: https://github.com/apache/incubator-apisix/pull/1221#issuecomment-598645994
 
 
   @moonming  added thanks.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] Akayeshmantha commented on issue #1221: Adding tcp logger.

Posted by GitBox <gi...@apache.org>.
Akayeshmantha commented on issue #1221: Adding tcp logger.
URL: https://github.com/apache/incubator-apisix/pull/1221#issuecomment-597583946
 
 
   Hi @membphis  @moonming  
   
   I completed the tcp logger but am getting below error in a unit test (test 5 access). 
   
   `Failed test 'TEST 5: access - pattern "[error]" should not match any line in error.log but matches line "2020/03/11 09:41:17 [error] 26326\#26326: *21 [lua] tcp-logger.lua:61: failed to connect to TCP server: host[127.0.0.1] port[2001] connection refused, context: ngx.timer, client: 127.0.0.1, server: 0.0.0.0:1984" (req 0)`
   
   Any thoughts am actually blocked here
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] Akayeshmantha commented on issue #1221: Adding tcp logger.

Posted by GitBox <gi...@apache.org>.
Akayeshmantha commented on issue #1221: Adding tcp logger.
URL: https://github.com/apache/incubator-apisix/pull/1221#issuecomment-599152432
 
 
   @membphis  @moonming  can we merge this PR. If the read me doc is ok I can add udp plugin readme as well.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] membphis commented on issue #1221: Adding tcp logger.

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1221: Adding tcp logger.
URL: https://github.com/apache/incubator-apisix/pull/1221#issuecomment-599155239
 
 
   merged, many thx

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] moonming commented on issue #1221: Adding tcp logger.

Posted by GitBox <gi...@apache.org>.
moonming commented on issue #1221: Adding tcp logger.
URL: https://github.com/apache/incubator-apisix/pull/1221#issuecomment-598514924
 
 
   need add plugin doc and README.md.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] membphis merged pull request #1221: Adding tcp logger.

Posted by GitBox <gi...@apache.org>.
membphis merged pull request #1221: Adding tcp logger.
URL: https://github.com/apache/incubator-apisix/pull/1221
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] Akayeshmantha edited a comment on issue #1221: Adding tcp logger.

Posted by GitBox <gi...@apache.org>.
Akayeshmantha edited a comment on issue #1221: Adding tcp logger.
URL: https://github.com/apache/incubator-apisix/pull/1221#issuecomment-598273328
 
 
   Finally thanks @moonming. It's ready to review 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] Akayeshmantha commented on issue #1221: Adding tcp logger.

Posted by GitBox <gi...@apache.org>.
Akayeshmantha commented on issue #1221: Adding tcp logger.
URL: https://github.com/apache/incubator-apisix/pull/1221#issuecomment-598875106
 
 
   @moonming added the readme file and the document.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services