B0go / godna

GoDNA ia a tool to handle LogDNA backup file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

GoDNA ia a tool to handle LogDNA backup file.

License:MIT License


Languages

Language:Go 94.2%Language:Makefile 5.8%