-
Type:
New Feature
-
Status: Open
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Artifactory, Distribution, Mission-Control, Xray
-
Labels:None
-
Location:External
Hi Team,
In flipkart we are using cosmos tail plugin. This plugin is useful to see the services 5xx,2xx,4xx, errors, request size those kind of details. This plugin will support the space as delimiter, But in our jfrog components service request log values are seperated by "|" symbol.
We need to integrate the service request log with our plugin. We have tried to change the pattern but it is not reflecting in the logs file.We restarted service also.
Can you please help us on this request.
Ex:
<appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILE-REQUEST">
<File>${jfmc.logs}/mc-request.log</File>
<encoder>
<pattern>%date{yyyy-MM-dd'T'HH:mm:ss.SSS, UTC} %mdc{trace-id} %mdc{req.remoteAddress} %mdc{req.username} %mdc{req.method} %mdc{req.uri} %mdc{req.status} %mdc{res.contentLength} %mdc{req.contentLength} %mdc{req.duration} %mdc{req.userAgent}%n</pattern>
<charset>utf8</charset>
</encoder>
<rollingPolicy class="org.jfrog.common.logging.logback.rolling.FixedWindowWithDateRollingPolicy">
<fileNamePattern>${jfmc.logs}/archived/mc-request-%i.log.gz</fileNamePattern>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>25MB</maxFileSize>
</triggeringPolicy>
</appender>