forked from activecm/rita-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor import command dependencies so I can split out the parsing of the different file types * Split parsing for different file types into their own files. Fix bug with open connections where the host map's counters for unexpected protocol port service tuples weren't being incremented * Add time taken to parse display, add comments for enabling profiling of parsing * Change strings.Split to strings.Index in parseTSVField to stop allocated extra strings, function runs ~1.2x faster now, and GC is doing a small bit better * Use strconv.Atoi instead of strconv.ParseInt since it has a shortcut for simply formatted integers * Map from each Zeek field's index in the header to the parse struct field offsets using an array. We previously mapped from each Zeek field's name to the offsets using a hashmap. This took a lot of time since the code was executed a lot. * Rely on system gzip/ pigz when possible instead of golang gzip. Docker specifically uses pigz for this purpose. * Switch from standard json lib to json-iter * convert unique ip sets over to hashmaps from slices * fix bug in gzip changes where subprocesses were not properly closed * Change batching limit such that batches are limited to the maximum of either 4GB (as before) or half of system RAM. Note that RAM usage is much lower than the batch limit since we don't store every line we read. * linter fixes * Replace string sets backed by string slices with maps * Cache IPv4 format conversions perfomed by the golang library * provide a fast path for creating unique ip objects without agent info * (activecm#684) Fix host collection connection counts are undercounted in the new parser * Fix bug where UniqueIPSets were not being properly used after converting the set representation * Fix bug in string sets where they were not being properly initialized * CI kick * replace spaces in log fields with underscores Co-authored-by: Logan L <[email protected]>
- Loading branch information
Showing
55 changed files
with
2,312 additions
and
1,768 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.