GoDNA ia a tool to handle LogDNA backup file.
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.
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
go get github.com/rafaelreinert/godna