cha87de / flowexport

Alpine Docker container to expose network flow data. Based on pmacctd and nfdump
MIT License
5 stars 2 forks source link

How to write JSON into files? #4

Open megastef opened 5 years ago

megastef commented 5 years ago

Hi, I did not see an option to generate JSON output. Could you please tell me what would need to be changed?

cha87de commented 5 years ago

Hi @megastef the nfdump option to select the format of the file export needs to be passed through, e.g. by changing the flowexport variable MODE form text / netflow to file / netflow and then add a new variableFILETYPE with valid options for nfdump (raw, line, long, extended, csv, json, pipe).

I will try to make these changes, unless you come up with a Pull Request earlier (that would be highly appreciated) :-)