You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Rajesh Chandramohan (JIRA)" <ji...@apache.org> on 2017/05/15 18:31:04 UTC

[jira] [Commented] (KNOX-822) In Knox can we capture Bytes transfered info in logs

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

Rajesh Chandramohan commented on KNOX-822:
------------------------------------------

 Kevin Minder <ke...@oracle.com>
To dev@knox.apache.org Rajesh Chandramohan
CC user@knox.apache.org
15/12/16 at 6:35 AM
Actually if you enable the properties shown in gateway-log4j.properties and restart you should get request/response sizes in a separate access log but unfortunately not the authenticated/mapped user.  Keep in mind that the request length might be based on the request Content-Length header.  The code involved is in gateway-server/src/main/java/org/apache/hadoop/gateway/trace and AccessHandler.java in particular.

#log4j.logger.org.apache.hadoop.gateway.access=TRACE,httpaccess
#log4j.additivity.org.apache.hadoop.gateway.access=false

#log4j.appender.httpaccess=org.apache.log4j.DailyRollingFileAppender
#log4j.appender.httpaccess.File=${app.log.dir}/${launcher.name}-http-access.log
#log4j.appender.httpaccess.DatePattern=.yyyy-MM-dd
#log4j.appender.httpaccess.layout=org.apache.log4j.PatternLayout
#log4j.appender.httpaccess.layout.ConversionPattern=%d{ISO8601}|%t|%m%n

> On Dec 14, 2016, at 11:15 PM, larry mccay <lm...@apache.org> wrote:
>
> Hello Rajesh -
>
> I don't think that we have any way to do this today.
> There may be extension points in our metrics or in our audit logging to capture payload sizes.
> I imagine that the interesting place to do this would be in the dispatch classes to capture what is being sent to and received from the backend services.
>
> This would require some investigation to determine whether we can gather the sizes and how best to capture them.
>
> I would suggest filing an improvement JIRA and continuing the discussion there.
>
> Thanks for your interest in Knox!
>
> --larry

> In Knox can we capture Bytes transfered info in logs
> ----------------------------------------------------
>
>                 Key: KNOX-822
>                 URL: https://issues.apache.org/jira/browse/KNOX-822
>             Project: Apache Knox
>          Issue Type: Wish
>          Components: Server
>    Affects Versions: 0.6.0, 0.7.0, 0.9.0, 0.10.0
>            Reporter: Rajesh Chandramohan
>
> Hi Knox-team,
> In knox can we capture the bytes transferred information along with file name etc. This would help us to track how much transaction each users are doing  via knox , Any method or thoughts on this?
>  We make use of audit logs to capture each user how many transaction doing per hr per day. But we like to capture the details of how much bytes per transaction users are doing which will help us for various cases to manage Hadoop and Knox better. Any thoughts on this ? 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)