Closed ResearchIntern98 closed 6 years ago
This would require passing a pointer to the ipfix_msg->input_info structure to Storage::storeDataRecord method (https://github.com/CESNET/ipfixcol/blob/master/plugins/storage/json/Storage.cpp#L105), adding a configuration option for this feature and updating the Storage::storeDataRecord to add input_info->odid to the json message.
Optionally, we can add option for including source IP address and source port as well.
It seems quite easy, you can do it yourself and make a pull request or wait a bit till I find some time to implement it.
Thanks. I shall wait for it. :)
I've just commited the code to the devel branch. Just by adding <odid>yes</odid>
to the configuration, you should be able to print the odid. Please let me know if there is a problem with the code, I've tested it only on a small sample. Thanks
It would be of great help if ODID is also written along with flows in json output.