You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Paul Rütter (Jira)" <ji...@apache.org> on 2025/07/03 11:40:00 UTC

[jira] [Commented] (FELIX-5868) How to add global filters in jetty

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

Paul Rütter commented on FELIX-5868:
------------------------------------

[~vijaysarathy94] have you tried using [https://github.com/apache/felix-dev/blob/master/http/jetty12/src/main/java/org/apache/felix/http/jetty/internal/JettyService.java#L471?] 

 
{code:java}
/** Felix specific property to control the format of the log messages generated by the OSGi Log Service-based request log. */
public static final String FELIX_HTTP_REQUEST_LOG_FORMAT = "org.apache.felix.http.requestlog.osgi.format";

/** Felix specific property to enable request logging to a file and provide the path to that file. Default is null meaning that the file log is disabled. */
public static final String FELIX_HTTP_REQUEST_LOG_FILE_PATH = "org.apache.felix.http.requestlog.file.path"; {code}

> How to add global filters in jetty
> ----------------------------------
>
>                 Key: FELIX-5868
>                 URL: https://issues.apache.org/jira/browse/FELIX-5868
>             Project: Felix
>          Issue Type: Wish
>          Components: Karaf
>            Reporter: vijay p 
>            Priority: Blocker
>
> Hi,
>     We are trying to add filters on the jetty level in karaf to monitor all requests. We are struggling to achieve this. I request help for this as I am stuck on how to get this done. I tried many approaches and i failed



--
This message was sent by Atlassian Jira
(v8.20.10#820010)