Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
# csvtool | ||
|
||
The csvtool is intended to convert from ArchiveRecord files to CSV files. | ||
It currently only handles raw or zstd compressed JSONL files as source. | ||
It takes a single command line argument, which is the name of the file, or "-" to read uncompressed JSONL from stdin. | ||
The csvtool is intended to convert the ArchiveRecord file format produced by | ||
tcp-info to more easily usable CSV files. csvtool currently only handles | ||
individual, raw or zstd compressed JSONL files as a source. Named files should | ||
be the only parameter. If reading uncompressed JSONL from STDIN, provide no | ||
argument. | ||
|
||
## Examples: | ||
## Examples | ||
|
||
Decompressing the JSONL file so that csvtool reads from stdin: | ||
|
||
```bash | ||
zstd -cd 2019/04/01/ndt-jdczh_1553815964_00000000000003E8.00184.jsonl.zst | ./csvtool - > connection.csv | ||
zstd -cd 2019/04/01/ndt-jdczh_1553815964_00000000000003E8.00184.jsonl.zst | ./csvtool > connection.csv | ||
``` | ||
|
||
Directly read compressed format: | ||
|
||
```bash | ||
./csvtool 2019/04/01/ndt-jdczh_1553815964_00000000000003E8.00184.jsonl.zst > connection.csv | ||
``` |