Skip to content

Commit

Permalink
version 2.1.11: fix logstash config in logback-spring.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
stokpop committed Aug 22, 2022
1 parent d68f879 commit 7954184
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,13 @@ on a remote location.

To start the docker:

docker run --rm -d -p 8080:8080 --name afterburner stokpop/afterburner-jdk:2.1.2
docker run --rm -d -p 8080:8080 --name afterburner stokpop/afterburner-jdk:2.1.11-jdk11

To start with the pyroscope agent (make sure to build with profile `pyroscope`: `-Ppyroscope`):

docker run -rm -d -p 8080:8080 \
-e JAVA_TOOL_OPTIONS="-javaagent:/pyroscope.jar" \
--name afterburner stokpop/afterburner-jdk:2.1.2
--name afterburner stokpop/afterburner-jdk:2.1.11-jdk11

##### credits
* fire favicon from [freefavicon](http://www.freefavicon.com)
7 changes: 3 additions & 4 deletions afterburner-java/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
</encoder>
</appender>
<appender name="Stash" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
<param name="Encoding" value="UTF-8"/>
<remoteHost>${afterburner.logback.logstash.remotehost:-logstash}</remoteHost>
<port>${afterburner.logback.logstash.port:-4560}</port>
<encoder class="net.logstash.logback.encoder.LogstashEncoder">
<encoder charset="UTF-8"
class="net.logstash.logback.encoder.LogstashEncoder">
<customFields>{"system_under_test":"${management.metrics.tags.system_under_test}", "test_environment": "${management.metrics.tags.test_environment}", "service": "${management.metrics.tags.service}"}</customFields>
</encoder>
<destination>${afterburner.logback.logstash.remotehost:-logstash}:${afterburner.logback.logstash.port:-4560}</destination>
</appender>

<root level="info">
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</developers>

<properties>
<revision>2.1.10</revision>
<revision>2.1.11</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<encoding>UTF-8</encoding>
Expand Down

0 comments on commit 7954184

Please sign in to comment.