Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-458

Filters configuration

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0-beta9
    • 2.0-beta9
    • Filters
    • Eclipse on widows

    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:
      <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 below 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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            erick Erick Erickson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment