Export NDJSON from Resurface database
This open-source Java utility exports API calls from a remote Resurface database to a local NDJSON file.
Download executable jar:
wget https://dl.cloudsmith.io/public/resurfaceio/public/maven/io/resurface/resurfaceio-exporter/3.7.1/resurfaceio-exporter-3.7.1.jar
Exporting from a remote database: (first 1000 rows)
java -DFILE=target/test-$(date +%F).ndjson.gz -DHOST=neptune -DPORT=443 -DLIMIT_MESSAGES=1000 -DMAX_CALL_AGE_IN_DAYS=14 -DUSER=rob -DPASSWORD=**** -Xmx512M -jar resurfaceio-exporter-3.7.1.jar
FILE: local .ndjson.gz file to create
HOST: machine name for remote database
PORT: network port for remote database (80 or 443 for Kubernetes, 7701 for Docker)
LIMIT_MESSAGES: default is '0' (unlimited), quit after this many messages
USER: Trino user name (required)
PASSWORD: Trino user password (required)
URL: override HOST and PORT with custom URL for remote database
- Java 17
- Trino 470
- resurfaceio/ndjson
If you want to call this utility from your own Java application, add these sections to pom.xml
to install:
<dependency>
<groupId>io.resurface</groupId>
<artifactId>resurfaceio-exporter</artifactId>
<version>3.7.1</version>
</dependency>
<repositories>
<repository>
<id>resurfaceio-public</id>
<url>https://dl.cloudsmith.io/public/resurfaceio/public/maven/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
</repository>
</repositories>
© 2016-2025 Graylog, Inc.