retis-org / retis

Tracing packets in the Linux networking stack & friends
https://retis.readthedocs.io/en/stable/
100 stars 14 forks source link

Support for handling the events (display on stdout, write to a file) after they are processed #28

Closed atenart closed 1 year ago

atenart commented 2 years ago

Once an event is retrieved and processed we can provide it to the user. No post-processing is done at this point as we need all events for this and such things will be done offline.

Things to consider:

For an initial support only a raw output to stdout might be possible to support. That is fine, if so please split this issue.

This depends on #8.

atenart commented 1 year ago

With #53 events are being printed on stdout. Writing them to a file isn't required for the PoC as we won't support post-processing. We also shouldn't have too many surprises when doing so as we already discussed different approaches for importing events (from json). Thus we don't need to work on this right away.

For the above reasons, delaying this to after the PoC.

atenart commented 1 year ago

In order to properly output the event, while they are being received, we should implement a Display trait and not repply on the json formatting. This will allow displaying nice types such as tcp flags:

atenart commented 1 year ago

Fixed in #67. Will open a dedicated issue for future improvements.