-
Notifications
You must be signed in to change notification settings - Fork 1
Emit events via JSON to capture 'no template for XXX, skip data set' so we can see data loss #22
Comments
We would need to introduce another callback handler to notify the export modules of such an event. This should be easy to do, the only careful bit being the naming. I'll call these 'notification' handlers, and make them type-safe. I suppose there would be scope for something more printf-like (or mlogf-like)... but that could be a more general handler; it needed at all; and since that is not clear, I won't bother with that at this time. I'll call the handlers with the 'export_notify_no_template_for_set', and it will take the template ID (ie. Possibly such a handler might try and do something with the data to prevent against data-loss, so we should pass in sufficient information to enable it to do so. Comparing with the If we look at some code from ipfix_parse_msg, we see
So remembering that this callback would imply that a set or records is ignored, then we need to model this somewhat on export_dset, and not export_drecord. Below are the declarations for the export_dset callback, and the callback we are creating.
The |
Example message that is currently emitted. Note that it also has the exporter's IP, to help answer the obvious question "which machines am I missing templates for?"
|
This is annoying, because with default settings, you can lose a lot of data. I rather suspect that it would be useful to pre-load templates for some probes, as they will likely be the same for some devices, such as the NetScaler (ie. 258 is always an HTTP report)
The text was updated successfully, but these errors were encountered: