[
https://issues.apache.org/jira/browse/LOG4J2-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Remko Popma updated LOG4J2-458:
-------------------------------
Description:
Hi,
Here is my log line:
2013-11-29 15:34:23,345: INFO : [main] : [myModule] : Initializing module...
I'm trying to get my filter to read and accept to log this line and I put this
in my configuration file:
- MarkerFilter:
{code}
<RollingFile name="LOGS_FILES" fileName="txt.logs"
filePattern="txt-%d{MM-dd-yyyy}.log.gz">
<MarkerFilter marker="INFO" onMatch="ACCEPT"
onMismatch="DENY"/>
<PatternLayout>
<pattern>%d: %6p : %t : %c{1} : %m%n</pattern>
</PatternLayout>
<TimeBasedTriggeringPolicy />
</RollingFile>
{code}
- RegexFilter:
{code}
<RollingFile name="LOGS_FILES" fileName="txt.logs"
filePattern="txt-%d{MM-dd-yyyy}.log.gz">
<RegexFilter regex=".*myModule.*"
onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout>
<pattern>%d: %6p : %t : %c{1} : %m%n</pattern>
</PatternLayout>
<TimeBasedTriggeringPolicy />
</RollingFile>
{code}
Base on my log line below How do I use:
- DynamicThresholdFilter
- ThresholdFilter
- MapFilter
- StructuredDataFilter
here is my log line:
{code}
2013-11-29 15:34:23,345: INFO : [main] : [myModule] : Initializing module...
{code}
Please Help
Thanks
was:
Hi,
Here is my log line:
2013-11-29 15:34:23,345: INFO : [main] : [myModule] : Initializing module...
I'm trying to get my filter to read and accept to log this line and I put this
in my configuration file:
- MarkerFilter:
<RollingFile name="LOGS_FILES" fileName="txt.logs"
filePattern="txt-%d{MM-dd-yyyy}.log.gz">
<MarkerFilter marker="INFO" onMatch="ACCEPT"
onMismatch="DENY"/>
<PatternLayout>
<pattern>%d: %6p : %t : %c{1} : %m%n</pattern>
</PatternLayout>
<TimeBasedTriggeringPolicy />
</RollingFile>
- RegexFilter:
<RollingFile name="LOGS_FILES" fileName="txt.logs"
filePattern="txt-%d{MM-dd-yyyy}.log.gz">
<RegexFilter regex=".*myModule.*"
onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout>
<pattern>%d: %6p : %t : %c{1} : %m%n</pattern>
</PatternLayout>
<TimeBasedTriggeringPolicy />
</RollingFile>
Base on my log line bellow How do I use:
- DynamicThresholdFilter
- ThresholdFilter
- MapFilter
- StructuredDataFilter
here is my log line:
2013-11-29 15:34:23,345: INFO : [main] : [myModule] : Initializing module...
Please Help
Thanks
> Filters configuration
> ---------------------
>
> Key: LOG4J2-458
> URL: https://issues.apache.org/jira/browse/LOG4J2-458
> Project: Log4j 2
> Issue Type: Question
> Components: Filters
> Affects Versions: 2.0-beta9
> Environment: Eclipse on widows
> Reporter: Eric
> Priority: Minor
> Labels: newbie
> Fix For: 2.0-beta9
>
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> Hi,
> Here is my log line:
> 2013-11-29 15:34:23,345: INFO : [main] : [myModule] : Initializing
> module...
> I'm trying to get my filter to read and accept to log this line and I put
> this in my configuration file:
> - MarkerFilter:
> {code}
> <RollingFile name="LOGS_FILES" fileName="txt.logs"
> filePattern="txt-%d{MM-dd-yyyy}.log.gz">
> <MarkerFilter marker="INFO" onMatch="ACCEPT"
> onMismatch="DENY"/>
> <PatternLayout>
> <pattern>%d: %6p : %t : %c{1} : %m%n</pattern>
> </PatternLayout>
> <TimeBasedTriggeringPolicy />
> </RollingFile>
> {code}
> - RegexFilter:
> {code}
> <RollingFile name="LOGS_FILES" fileName="txt.logs"
> filePattern="txt-%d{MM-dd-yyyy}.log.gz">
> <RegexFilter regex=".*myModule.*"
> onMatch="ACCEPT" onMismatch="DENY"/>
> <PatternLayout>
> <pattern>%d: %6p : %t : %c{1} : %m%n</pattern>
> </PatternLayout>
> <TimeBasedTriggeringPolicy />
> </RollingFile>
> {code}
> Base on my log line below How do I use:
> - DynamicThresholdFilter
> - ThresholdFilter
> - MapFilter
> - StructuredDataFilter
> here is my log line:
> {code}
> 2013-11-29 15:34:23,345: INFO : [main] : [myModule] : Initializing
> module...
> {code}
> Please Help
> Thanks
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]