... <dependency> <groupId>biz.paluch.logging</groupId> <artifactId>logstash-gelf</artifactId> <version>1.14.1</version> </dependency> ...
<Configuration status="debug" packages="biz.paluch.logging.gelf.log4j2" > ...
<Appenders>
...
<Gelf name="gelf" host="udp:xxx.xxx.xxx.xxx" port="12201"
version="1.0" extractStackTrace="true" filterStackTrace="true"
mdcProfiling="true" includeFullMdc="true" maximumMessageSize="8192"
originHost="<api_name>"
additionalFieldTypes="fieldName1=String,fieldName2=Double,fieldName3=Long"
ignoreExceptions="true">
<Field name="timestamp" pattern="%d{dd MMM yyyy HH:mm:ss,SSS}" />
<Field name="level" pattern="%level" />
<Field name="simpleClassName" pattern="%C{1}" />
<Field name="className" pattern="%C" />
<Field name="server" pattern="%host" />
<Field name="server.fqdn" pattern="%host{fqdn}" />
</Gelf>
...
</Appenders>
...
<Loggers>
...
<AsyncRoot level="INFO">
<AppenderRef ref="file" />
<AppenderRef ref="gelf"/>
</AsyncRoot>
...
</Loggers>
001122453

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.