1
0
mirror of https://github.com/netsampler/goflow2.git synced 2024-05-06 15:54:52 +00:00

37 Commits

Author SHA1 Message Date
a9f9289f6b deps: bump sarama to v1.29.1 2021-10-28 15:06:42 +11:00
17a96d9911 netflow: correctly decode options template set (#39)
netflow: correctly decode options template set
2021-09-23 20:46:39 -07:00
b0b73b2b90 Merge pull request #38 from vincentbernat/fix/defer-unlock
style: defer unlock when possible/not trivial
2021-09-23 20:44:05 -07:00
536b08812f Custom map flow fields (#36)
* adds dataframe link decoding
* can map NetFlow/IPFIX fields and bytes sections from sFlow/packets to any field inside the protobuf
* add CLI argument for loading a mapping yaml file
2021-09-23 20:41:17 -07:00
95945d3042 style: defer unlock when possible/not trivial
Defer unlocking just after taking a lock when possible (when unlock is
done at the very end) and when not trivial (the function body is more
than a couple of lines). This simplifies a bit some functions (no need
to unlock before each return) and for the other, it may avoid a bug in
the future in case a return is inserted into the body of a function.

Use of defer has been optimized a lot in Go and it is believed that
simpler defers have zero overhead since Go 1.14:
https://golang.org/doc/go1.14#runtime

> This release improves the performance of most uses of defer to incur
> almost zero overhead compared to calling the deferred function
> directly. As a result, defer can now be used in performance-critical
> code without overhead concerns.
2021-09-23 10:01:24 +02:00
defd786b2a Merge pull request #34 from jotak/podman
Makefile: parameterized DOCKER_REPO and DOCKER_BIN
2021-09-09 21:51:39 -07:00
13daf3b669 Merge pull request #33 from amorenoz/delta
ipfix: support relative flow timestamps
2021-09-09 21:51:12 -07:00
d3e3fdb0f8 Makefile: parameterized DOCKER_REPO and DOCKER_BIN
e.g. allowing to build with podman

Also add gitignore for dist/

Signed-off-by: Joel Takvorian <jtakvori@redhat.com>
2021-09-09 14:53:26 +02:00
9247511c44 ipfix: support relative flow timestamps
IPFIX supports sending flowEndDeltaMicroseconds (159) and
flowEndDeltaMicroseconds (160) to provide flow timestamps relative to
the exportTime in the IPFIX Message Header.

Use them to calculate flow TimeFlowStart and TimeFlowEnd.

Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
2021-09-08 17:12:31 +02:00
11acc67852 Merge pull request #32 from loganmc10/patch-1
Fix README for SrcPort and DstPort
2021-09-07 08:43:42 -07:00
5ad65d5100 Fix README for SrcPort and DstPort 2021-09-07 07:35:09 -06:00
faca667b19 Merge pull request #30 from netsampler/bug/enricher-decode
bugfix: enricher decoding certain protobuf
2021-08-29 08:00:47 -07:00
0b0f9dd952 Merge pull request #25 from netsampler/feature/enricher-sampling
Enricher can set sampling rate
2021-08-28 10:38:07 -07:00
21c7fee62e bugfix: enricher decoding certain protobuf
* now requires length prefixed messages
* allows custom line separator for text transport output
2021-08-27 10:04:22 -07:00
a645df2da4 Merge pull request #27 from netsampler/feature/golang-117
bump golang version to 1.17
2021-08-16 18:43:49 -07:00
84dc1ff5d7 bump golang version to 1.17 2021-08-16 18:37:42 -07:00
5a42b2b1f7 Enricher can set sampling rate 2021-08-10 22:32:43 -07:00
1ad90a7375 Create LICENSE 2021-08-10 09:34:58 -07:00
8677c8d9ba Merge pull request #23 from s-chekanov/fix_db_start
Fix clickhouse startup after restart
2021-08-02 07:38:41 -07:00
3384a90a29 Fixing clickhouse startup after restart 2021-08-02 15:33:41 +03:00
6465eeb200 Merge pull request #17 from netsampler/feature/arm
feature: add arm builds
v1.0.4
2021-06-11 23:38:57 -07:00
583059057a feature: add arm builds 2021-06-11 23:30:56 -07:00
e52a053c9c formatting improved with selectors and text output (#14)
* Improve format registration
* less interleaving (json does not require importing protobuf)
* generic text renderer
* escape for strings in text/json formatter
v1.0.3
2021-06-11 08:42:32 -07:00
9bdcdf0b22 Merge pull request #16 from netsampler/bugfix/destination-mac-ipfix
Bugfix NetFlow/IPFIX producer
2021-06-10 18:59:33 -07:00
04c8543306 Bugfix NetFlow/IPFIX producer
* Source and destination mac addresses are fed from `NFV9_FIELD_xx_yyy_MAC`
  Fixes a bug where the samples were missing either source or destination Mac.
  This is supposed to be linked to the sampling direction.
2021-06-09 18:08:55 -07:00
88cbf58172 Merge pull request #10 from simPod/mf-lf
Ensure line feed in Makefile
2021-06-07 23:21:29 -07:00
7da5c4da27 Ensure line feed in Makefile 2021-06-08 08:07:52 +02:00
645497bec6 Merge pull request #9 from netsampler/fix/protobuf
Fix protobuf
2021-06-07 22:50:42 -07:00
ab81e52b43 Fix protobuf
* Rebuiild with protoc v3.17.2 and protoc-gen-go v1.26.0
* Add misisng go_package flag
* Add protobuf documentation
2021-06-07 22:43:09 -07:00
ecb30ed993 Merge pull request #7 from simPod/readme
Fix few typos in readme
2021-06-04 20:17:50 -07:00
f2c4bc27d7 Fix few typos in readme 2021-06-04 10:31:52 +02:00
622c41a69d Merge pull request #4 from netsampler/feature/sighup
feature: implement SIGHUP for log rotation
v1.0.2
2021-06-03 18:39:21 -07:00
80ef166b84 Add new compose stack (#5)
* add compose for ELK
* reorg compose directories, bind to docker versions and fix Clickhouse/Grafana configurations
2021-05-31 22:10:05 -07:00
686497ea5c feature: implement SIGHUP for log rotation when using transport.destination 2021-05-27 19:33:19 -07:00
df01c790df Merge pull request #2 from netsampler/bugfix/variable-length
bugfix: variable length, missing option templates
v1.0.1
2021-05-25 22:44:51 -07:00
1fda65fe41 bugfix: variable length, missing option templates 2021-05-25 21:52:59 -07:00
e4bacbc4bd init v1.0.0 2021-05-25 17:33:26 -07:00