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

Collector logging #1828

Merged
merged 4 commits into from
Dec 19, 2024
Merged

Collector logging #1828

merged 4 commits into from
Dec 19, 2024

Conversation

c-kruse
Copy link
Contributor

@c-kruse c-kruse commented Dec 10, 2024

Reopens #1783

I believe we've sorted out that this sort of a protocol-level vanflow logging option is useful for debugging different scenarios, but is not a particularly nice solution for users looking for an audit trail for service traffic. I've opened #1827 to tackle that use case.

@c-kruse
Copy link
Contributor Author

c-kruse commented Dec 10, 2024

Example network-observer startup logs with -vanflow-logging-profile=minimal after ~2 minutes of the hello world demo.

https://gist.githubusercontent.com/c-kruse/ac0d7da6c5261a45708b03cf4c0c3730/raw/91de69fffc37f62ea7fb8e344f41e6498be97b0d/gistfile1.txt

@c-kruse c-kruse requested a review from ajssmith December 10, 2024 23:00
@c-kruse c-kruse self-assigned this Dec 10, 2024
@c-kruse c-kruse requested a review from fgiorgetti December 10, 2024 23:01
Implements several "profiles" to control the quantity of vanflow record
logging the collector does. Defaults to silent. Primairly a debugging
aid.

Signed-off-by: Christian Kruse <[email protected]>
Convert record map into slog.Group

Signed-off-by: Christian Kruse <[email protected]>
Match: flowlog.NewRecordTypeSet(
vanflow.SiteRecord{}, vanflow.RouterRecord{},
vanflow.ProcessRecord{}, vanflow.ConnectorRecord{},
vanflow.LinkRecord{}, vanflow.ListenerRecord{},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should LinkRecord be part of both rules (priority 5 and 1)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, there was no real sense in that. Dropped it from the p 5 rule (lowest wins). Thank you!

Copy link
Member

@fgiorgetti fgiorgetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Played a bit with the different strategies and they seem to work well.

@c-kruse c-kruse merged commit 3417b61 into skupperproject:v2 Dec 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants