Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having hostname in EVENT_FLOW_END json output? #24

Open
fateme81 opened this issue Sep 9, 2023 · 1 comment
Open

Having hostname in EVENT_FLOW_END json output? #24

fateme81 opened this issue Sep 9, 2023 · 1 comment
Labels
question Further information is requested

Comments

@fateme81
Copy link

fateme81 commented Sep 9, 2023

we have field host_server_name as a field of EVENT_FLOW_DETECTED log. how can we bring it in EVENT_FLOW_END ??

@utoni
Copy link
Owner

utoni commented Sep 9, 2023

You need to store the host server name in the current flow.

For the C API: You need to reserve some user flow memory during socket init. In the JSON callback you may then access your memory via nDPIsrvd's flow struct.

For the Python API: You may use the current flow in the JSON callback and add the information you'll need. This information will be available as long as the flow does not end or time out.

@utoni utoni added the question Further information is requested label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants