Skip to main content

Aggregating Logs

StackBlitz EE is built on Kubernetes and PostgreSQL, which makes shipping your StackBlitz EE logs to your existing logging infrastructure relatively simple.

Splunk#

Splunk offers 2 official plugins that are compatible with your embedded StackBlitz EE installtion:

Splunk DB Connect (DBX)#

StackBlitz EE provides logs of Events and Visits. These logs are stored permanently within the application's PostgreSQL database.

We recommend using Splunk DB Connect to harvest these records from the StackBlitz PG DB and deliver them to Splunk. This is only recommended if you are using an external PostgreSQL database that's able to handle the additional query load.

Follow the DBX documentation provided by Splunk to configure it to read from the ahoy_events and ahoy_visits table. Your StackBlitz account manager can provide additional details about the table structure if needed.

Splunk Connect for Kubernetes#

The StackBlitz EE application is installed within a Kubernetes cluster that is managed and configured by our installation tools (see: Replicated Kurl). As such we recommend using Splunk Connect for Kubernetes for ingesting these logs into Splunk. You can use this tool to ship logs to Splunk directly from your StackBlitz EE containers running within Kubernetes.

For installation and configuration instructions, see the Splunk Connect for Kubernetes documentation on github. Let your StackBlitz account manager know if you need any additional details regarding the Stackblitz Kubernetes platofrm.