Skip to content

Commit

Permalink
query_service: fix logback config
Browse files Browse the repository at this point in the history
Use LogstashUdpSocketAppender with LogstashLayout.
see logfellow/logstash-logback-encoder#542

Change-Id: I8de0982438839ed9923488c7bf0b0047235a6fb8
  • Loading branch information
nomoa authored and Bking committed May 23, 2023
1 parent 3ac4529 commit 7e559fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/query_service/templates/logback.xml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
* level => INFO
-->

<appender name="logstash" class="net.logstash.logback.appender.LogstashSocketAppender">
<appender name="logstash" class="net.logstash.logback.appender.LogstashUdpSocketAppender">
<filter class="org.wikidata.query.rdf.common.log.PerLoggerThrottler" />
<filter class="org.wikidata.query.rdf.common.log.RateLimitFilter">
<bucketCapacity>100</bucketCapacity>
Expand All @@ -88,6 +88,7 @@
<host>localhost</host>
<port><%= @logstash_logback_port %></port>
<customFields>{"program":"<%= @title %>"}</customFields>
<layout class="net.logstash.logback.layout.LogstashLayout"/>
</appender>
<appender name="async-logstash" class="ch.qos.logback.classic.AsyncAppender">
<neverBlock>true</neverBlock>
Expand Down

0 comments on commit 7e559fd

Please sign in to comment.