Another Upgrade from 1.6 to 1.7 command question. #593
Replies: 3 comments 2 replies
|
It's not about the print format Assume you use |
|
I believe I found the syntax to us to get the information I need however it looks like I will need to change some other stuff up to make sure its getting the correct data. These are the flags I believe will give me the correct information, both remove the use of the
and
|
|
Exactly! - the aggregation automatically sets the format!
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello again, I have gotten stuck with a couple more commands and was looking for some advice to better understand the proper syntax to use. Both of the commands that are failing are using -o fmt followed by some data. The first command has this for the -o flag
-o 'fmt:%sa, %da, %sp, %dp, %pkt, %byt, %fland the error returned was
Can not use print format fmt:%sa %da %sp %dp %pkt %byt %fl to aggregate flowsI tried it with and without comma's and spacings but non of the attempts worked. The second command using the -o fmt flag that I have that worked for 1.6 is
-o 'fmt:{"protocol": "%pr", "start": "%ts", "end": "%te", "duration": "%td", "srcip": "%sa", "dstip": "%da", "srcport": "%sp", "dstport": "%dp", "srcas": "%sas", "dstas": "%das", "packets": %pkt, "bytes": %byt, "flows": %fl, "packets": %pkt, "tos": %tos, "bps": %bps, "pps": %pps, "Bpp": %bpp}'The returned error was the same as the first error but with the different sent information.
Any help to better understand is very much appreciated, thanks!
All reactions