godna

command module
v0.0.0-...-ac7cf33 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 3 Imported by: 0

README

GoDNA Build Status codecov Go Report Card GoDoc

GoDNA ia a tool to handle LogDNA backup file.

Split

Split the backup in many files per host

usage: godna split <file> <output_dir>

split a log.

Flags:
      --help           Show context-sensitive help (also try --help-long and
                       --help-man).
  -c, --containers=CONTAINERS ...  
                       Filter by container.
  -t, --tags=TAGS ...  Filter by Tag.

Args:
  <file>        File to Split.
  <output_dir>  Folder where GoDNA will save the splited logs.

Exemples

Filter by containers (will save only container matched files):

godna split -c postgres -c node ~/Backup/e56cd18d89.2018-04-29.json.gz ~/logs

Filter by tags (will save only tags matched files):

godna split -t kubernetes -t web ~/Backup/e56cd18d89.2018-04-29.json.gz ~/logs

Filter by tags or containers (will save only tags or containers matched files):

godna split -t kubernetes -c postgres ~/Backup/e56cd18d89.2018-04-29.json.gz ~/logs

Install

go get github.com/rafaelreinert/godna

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