gpdb

command
v4.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2026 License: GPL-2.0 Imports: 1 Imported by: 0

README

gpdb

CLI tool to maintain on-disk goProbe databases

Subcommands

merge
./gpdb merge /path/to/source-db /path/to/destination-db

This merges source goDB data into the destination database.

  • Complete day folders are copied directly when safe.
  • Partial day folders are rebuilt block-by-block so metadata is re-encoded on write.
  • If both sides contain the same block timestamp, destination data wins by default.

Common options:

./gpdb merge /path/to/source-db /path/to/destination-db \
  --iface eth0 --iface eth1 \
  --dry-run

Use --overwrite to prefer source data on conflicts and to replace complete destination days with complete source days.

import
./gpdb import /path/to/input.csv /path/to/destination-db

This imports flow rows from CSV into goDB.

  • If --schema is omitted, the first CSV row is interpreted as schema/header.
  • Schema must include time and either iface or --iface must be provided.
  • Input rows must be ordered by non-decreasing time.

Common options:

./gpdb import /path/to/input.csv /path/to/destination-db \
  --schema "time,sip,dip,dport,proto,packets received,packets sent,data vol. received,data vol. sent" \
  --iface eth0 \
  --encoder lz4 \
  --max-rows 100000

--permissions accepts numeric modes like 0644.

Configuration

gpdb currently operates directly on local database paths and does not require API server configuration.

Refer to goDB Database Format for layout and metadata details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL