[SERVICE] Flush 1 Daemon Off Log_Level info Parsers_File parsers_custom.conf
[INPUT] Buffer_Chunk_Size 400k Buffer_Max_Size 5MB DB /var/log/containers/fluent-bit.db Mem_Buf_Limit 5MB Multiline On Multiline_Flush 5 Name tail Parser docker Parser_Firstline java_multiline Path /var/log/containers/*_online-*.log Refresh_Interval 5 Tag kube.spring.*
[FILTER] K8S-Logging.Parser On Kube_URL https://${KUBERNETES_SERVICE_HOST}:443 Match kube.* Merge_JSON_Log On Name kubernetes tls.verify Off
[PARSER] Format regex Name spring Regex (?<apptime>\d{4}-\d{1,2}-\d{1,2} \d{1,2}:\d{1,2}:\d{1,2}\.\d{3})\s+\[(?<process>[^\s]+)\]\s+(?<priority>[^\s]+)\s+(?<class>[^\s]+)\s(\[(?<mdc>[^\]]*)\])?\s+-\s+(?<message>.*) Time_Format %Y-%m-%d %H:%M:%S.%L Time_Key apptime
[PARSER] Format regex Name java_multiline Regex (?<apptime>\d{4}-\d{1,2}-\d{1,2} \d{1,2}:\d{1,2}:\d{1,2}\.\d{3}) Time_Format %Y-%m-%d %H:%M:%S.%L Time_Keep true Time_Key apptime
[PARSER] Format json Name docker Time_Format %Y-%m-%dT%H:%M:%S %z Time_Key time
[OUTPUT] Name es Match * Host 141.XX.XXX.XX Port 9200 Logstash_Format On Logstash_Prefix kubernetes-2-tst Include_Tag_Key true Retry_Limit False
2018-03-12 13:11:07.858 [http-nio-8080-exec-1] WARN org.springframework.cloud.netflix.zuul.filters.post.SendErrorFilter [] - Error during filteringcom.netflix.zuul.exception.ZuulException: Connect to connection-service:80 [connection-service/10.233.9.171] failed: connect timed out at org.springframework.cloud.netflix.zuul.util.ZuulRuntimeException.<init>(ZuulRuntimeException.java:33) at org.springframework.cloud.netflix.zuul.filters.route.SimpleHostRoutingFilter.run(SimpleHostRoutingFilter.java:207) at com.netflix.zuul.ZuulFilter.runFilter(ZuulFilter.java:112) at com.netflix.zuul.FilterProcessor.processZuulFilter(FilterProcessor.java:193) at com.netflix.zuul.FilterProcessor.runFilters(FilterProcessor.java:157) at com.netflix.zuul.FilterProcessor.route(FilterProcessor.java:118) at com.netflix.zuul.ZuulRunner.route(ZuulRunner.java:96) at com.netflix.zuul.http.ZuulServlet.route(ZuulServlet.java:116) at com.netflix.zuul.http.ZuulServlet.service(ZuulServlet.java:81) at org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:157) at org.springframework.cloud.netflix.zuul.web.ZuulController.handleRequest(ZuulController.java:44) ....and some more lines
-- Log file example --
--
You received this message because you are subscribed to the Google Groups "Fluent-Bit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluent-bit+unsubscribe@googlegroups.com.
To post to this group, send email to fluen...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fluent-bit/a8e177e6-0517-47d4-a371-d296185c424a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to fluent-bit+...@googlegroups.com.
To post to this group, send email to fluen...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fluent-bit/a8e177e6-0517-47d4-a371-d296185c424a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/fluent-bit/4988e21f-0357-47f7-b22d-237d00d287c9%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Fluent-Bit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fluent-bit/XoOibAxGGeI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fluent-bit+...@googlegroups.com.
To post to this group, send email to fluen...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fluent-bit/CAM8ZkJja-90qZvzMTB2Q%2BQcGftFUNyS538nSEzgdqnpu0SbDHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/fluent-bit/CAKMFkQ%2BSC6BUsmps0sEFfWnpgAdd1qS33niUB6cxrg5_NE%3DL_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Eduardo Silva
Principal Engineer | Arm
.
. . . . . . . . . . . . . . . . . . . . . . . . . .
m. +506 70138007
Arm.com
Treasuredata.com
This is a configuration for logback in combination with Spring Framework. It can also be used for non Spring projects with some changes.
<?xml version="1.0" encoding="UTF-8"?> <configuration> <include resource="org/springframework/boot/logging/logback/defaults.xml" /> <include resource="org/springframework/boot/logging/logback/console-appender.xml" /> <appender name="consoleAppender" class="ch.qos.logback.core.ConsoleAppender"> <encoder class="net.logstash.logback.encoder.LogstashEncoder"> <fieldNames> <timestamp>application_timestamp</timestamp> </fieldNames> <!-- This 'fixes' double quote problem for elastic --> <jsonFactoryDecorator class="net.logstash.logback.decorate.CharacterEscapesJsonFactoryDecorator"> <escape> <targetCharacterCode>34</targetCharacterCode> <escapeSequence>'</escapeSequence> </escape> </jsonFactoryDecorator> <!-- This shortens extremely long stacktraces. Not always needed --> <throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter"> <maxDepthPerThrowable>30</maxDepthPerThrowable> <maxLength>2048</maxLength> <shortenedClassNameLength>20</shortenedClassNameLength> <exclude>sun\.reflect\..*\.invoke.*</exclude> <exclude>net\.sf\.cglib\.proxy\.MethodProxy\.invoke</exclude> <rootCauseFirst>true</rootCauseFirst> <inlineHash>true</inlineHash> </throwableConverter> </encoder> </appender> <root level="INFO"> <!-- Services testing locally to have readable logging --> <springProfile name="!kubernetes"> <appender-ref ref="CONSOLE" /> </springProfile> <!-- Running services in kubernetes to have json logging --> <springProfile name="kubernetes"> <appender-ref ref="consoleAppender"/> </springProfile> </root> </configuration>
<dependency>
<groupId>net.logstash.logback</groupId>
<artifactId>logstash-logback-encoder</artifactId>
<version>5.3</version>
</dependency>
--
You received this message because you are subscribed to the Google Groups "Fluent-Bit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluent-bit+...@googlegroups.com.
To post to this group, send email to fluen...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fluent-bit/abc02805-c4f2-4474-8854-e29a39093d71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.