Visit Azul.com Support

About Log Store

Table of Contents
Need help?
Schedule a consultation with an Azul performance expert.
Contact Us

Log Store is a component of Optimizer Hub that allows Azul Zing Builds of OpenJDK (Zing JVM) to stream JVM logs for storage on the cloud. This approach helps you to collect logs from containerized applications which have no permanent storage and/or not easy to access due to network or security measures.

Note
Log Store is a pilot-grade feature in Optimizer Hub 26.11. It has not been validated under production load and is not intended for production use. Keep the following limitations in mind:

* Fleet size: Recommended for fleets of up to 100–200 JVMs.
* No automatic storage cleanup: Optimizer Hub 26.11 does not automatically clean up Log Store artifacts. Configure storage quotas on your blob storage provider, or enable the built-in cleanup mechanism. See Log Store Defaults.
* Opt-in: Log Store is opt-in on both client and server side.
* Sensitive data: Uploading crash reports (hs_err) requires an additional flag on the client side. If you use this, your logs and crash reports are stored in your blob storage. Compliance with applicable regulations is your responsibility.

Azul Zing Builds of OpenJDK (Zing), version 26.11 and newer, can connect to your Optimizer Hub instance to store logs. Check the "Using Log Store" section in this document for the command line options to configure this.

A typical use case would be:

  • You see a repeating but hard to reproduce problem that is affecting a percentage of your fleet

  • You enable GC logging for the app and configure it to stream logs to Log Store. You do this by adjusting the Java command line parameters of the application.

  • You collect logs until you see the problem has reproduced and logs have been captured

  • You turn off logging for the application

  • You pull the logs for the application using the Optimizer Hub REST API

  • You enable the built-in Log Store cleanup, or configure your blob storage provider’s own cleanup mechanism, to remove the logs

Types of Logs

The following logs can be streamed to Log Store:

  • Unified Logging Output: All logs generated with the -Xlog option. There can be multiple ones of these from a single JVM.

  • hs_err: Crash reports automatically generated by the JVM when a fatal error occurs. Uploading crash reports requires the -XX:LogStoreUpload=hs_err flag; they are always saved locally regardless.

See Using Log Store > Log Store Filename for more information on how to specify the log file names.

Sensitive Data in Logs

Log Store writes your logs to the blob storage of your own Optimizer Hub environment, so the log data stays within your own infrastructure. Keep in mind that these files can contain sensitive data. Crash reports and other JVM diagnostic output can include fragments of the data your application processes, for example personal or payment data that falls under some regulations such as GDPR or PCI-DSS.

When you send files from Log Store to Azul or another partner for further investigation, sanitize them first. Azul does not accept regulated or sensitive data. If such data reaches Azul by mistake, Azul deletes the affected files entirely and asks you to send a sanitized version.

Optimizer Hub Integration

Log Store is included in the Optimizer Hub Helm chart, but it is disabled by default. See Enabling Log Store. Optimizer Hub serves all requests, whether they be for Log Store, ReadyNow Orchestrator (RNO), or Cloud Native Compiler (CNC) through the Gateway component. When you use CNC functionality, that gateway scales automatically. When using only RNO and Log Store, the gateway does not scale. Each gateway can handle log streaming for approximately 100–200 JVMs simultaneously.

When you configure your runtimes to send their logs to Log Store, Optimizer Hub stores the logs as chunks in the configured blob storage. Optimizer Hub does not collate chunks into a single file when saving them to blob storage, so you cannot download a full log file directly from blob storage. Instead, use Optimizer Hub’s REST API to retrieve the logs from all your runtimes through a single access point.