-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Feature: packetbeat flows support #756
Conversation
3feb499
to
ac99f0a
Compare
func (pb *Packetbeat) setupSniffer(pub publisher.Client) error { | ||
cfg := &pb.PbConfig | ||
|
||
withVlans := cfg.Interfaces.With_vlans |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After this PR we should probably to a "cleanup rename var" PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hehe
Some high level thoughts:
|
b0fec2f
to
d0868b1
Compare
to be done
Yeah, a dedicated dashboard or kibana app. |
48a8abd
to
f7b3b9a
Compare
ICMPv6Flow FlowIDFlag = (1 << 8) | ||
UDPFlow FlowIDFlag = (1 << 9) | ||
TCPFlow FlowIDFlag = (1 << 10) | ||
ConnectionID FlowIDFlag = (1 << 11) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use iota for these? See Effective Go for an example of using iota for powers of two.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, wasn't aware of this.
b125cae
to
d876bd8
Compare
===== period | ||
|
||
Configure the reporting interval. All flows are reported at the very same point | ||
in time. Periodical reporting can be disabled by setting the value to -1. If |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not 0 instead of -1? That would also be invalid, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0 should have a similar effect. Due to parsing function it must say '0s' or '-1s' though.
When we say flows, is it worth clarifying which flow formats, e.g. NetFlow v5, NetFlow v9, IPFIX, sFlow, jFlow, ArborFlow, etc. |
d876bd8
to
d5bbcc4
Compare
d5bbcc4
to
0ff12f6
Compare
Feature: packetbeat flows support
Implements flow feature. For details see related issue: #670