Last active
October 29, 2015 09:40
-
-
Save heinrichvk/21dfee9dd62c06cc4295 to your computer and use it in GitHub Desktop.
Example Aggregation Log Filter Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
~ Copyright 2015 Axibase Corporation or its affiliates. All Rights Reserved. | |
~ | |
~ Licensed under the Apache License, Version 2.0 (the "License"). | |
~ You may not use this file except in compliance with the License. | |
~ A copy of the License is located at | |
~ | |
~ https://www.axibase.com/atsd/axibase-apache-2.0.pdf | |
~ | |
~ or in the "license" file accompanying this file. This file is distributed | |
~ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | |
~ express or implied. See the License for the specific language governing | |
~ permissions and limitations under the License. | |
--> | |
<configuration> | |
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> | |
<filter class="com.axibase.tsd.collector.logback.Collector"> | |
<writer class="com.axibase.tsd.collector.writer.HttpStreamingAtsdWriter"> | |
<url>http://atsd_server:8088/api/v1/command/</url> | |
<username>axibase</username> | |
<password>*****</password> | |
</writer> | |
<!-- | |
<level>TRACE</level> | |
--> | |
<sendSeries> | |
<repeatCount>1</repeatCount> | |
<intervalSeconds>60</intervalSeconds> | |
<minIntervalThreshold>1000</minIntervalThreshold> | |
<minIntervalSeconds>5</minIntervalSeconds> | |
</sendSeries> | |
<sendMessage> | |
<level>ERROR</level> | |
<stackTraceLines>-1</stackTraceLines> | |
<sendMultiplier>2</sendMultiplier> | |
<resetIntervalSeconds>600</resetIntervalSeconds> | |
</sendMessage> | |
<sendMessage> | |
<level>WARN</level> | |
<stackTraceLines>0</stackTraceLines> | |
<sendMultiplier>3</sendMultiplier> | |
<resetIntervalSeconds>600</resetIntervalSeconds> | |
</sendMessage> | |
<!-- | |
<sendMessage> | |
<level>TRACE</level> | |
<stackTraceLines>0</stackTraceLines> | |
<sendMultiplier>5</sendMultiplier> | |
<resetIntervalSeconds>3600</resetIntervalSeconds> | |
</sendMessage> | |
--> | |
</filter> | |
<encoder> | |
<pattern>%date{ISO8601} %level %thread %logger{35} - %msg %n</pattern> | |
</encoder> | |
</appender> | |
<logger name="org.springframework.batch.core.job.SimpleStepHandler" level="WARN"/> | |
<root level="INFO"> | |
<appender-ref ref="CONSOLE"/> | |
</root> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment