Send Open Liberty logs to Elastic Stack

Learn how to use the Elastic Stack to analyze your Open Liberty logs, trace, FFDC (first failure data capture), audit events, and access logs. Learn, also, how to use Kibana dashboards to visualize real-time information at a glance.

Example JSON logging configuration in file,trace,accessLog,ffdc,audit,trace,accessLog,ffdc,audit

Logstash collector

Normally, you use JSON logging in Open Liberty and send the log events data to Elastic Stack for log aggregation. If you can’t install Filebeat on your Liberty node, see how you can use Liberty’s Logstash collector feature to send logs to your Elastic Stack.

In cases where you need logstashCollector, add the following to your server.xml:


<keyStoreid="defaultKeyStore" password="Liberty" />
<sslid="mySSLConfig"trustStoreRef="defaultKeyStore"keyStoreRef="defaultKeyStore" />

    source="message, trace, ffdc,garbageCollection,accessLogs, audit"
    maxFieldLength="5000”             <<< Adjust, if needed, to avoid message truncation
    <tag>toronto</tag>                <<< tags are included in all events from this server