Skip to main content

gnat_export

Synopsis

Exports Parquet files transform into JSON or CSV.

Description

The gnat_export tool is primarily used to export Parquet files into JSON or CSV suitable for consumption with third party tools. This tool implements the gnat command line interface and shares the same required and optional arguments as other GNAT tools.

Options

Options are specified using the --options argument and are separated by semicolons.

--options format=[json|csv]

The --options json argument specifies an export in JSON format. Whereas the --options csv argument specifies an export in CSV format.

--options fields=[field1,field2,...]

The fields are specified as a comma-separated list of feature names. See gnat_feature_list for a list of valid fields

Example

Example with default fields:

$ gnat_export --options format=json --input /var/spool/import --output /var/spool/minute

Example with specific fields:

$ gnat_export --options format=json;fields=stime,saddr,sport,daddr,dport,proto,sbytes,dbytes,spkts,dpkits,ndpi_appid --input /var/spool/import --output /var/spool/minute

See Also