Add ability to combine a stream with itself dynamically. #693
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #46
Here is an example that uses the new
|combine()
method.For the above script say we have data being received on port 22 and data being sent on ports 80 and 443. (Note the port data is aggregate for an entire network not a single host). The TICKscript will combine the in vs out ports into pairs of (22, 80) and (22, 443). Then it windows the data an computes a correlation between them.
If we were to modify the
|combine
call to be less restrictive, like:then all pairs would be generated, i.e. (22,80) , (22,443) and (80,443). But since we don't care to correlate outgoing ports with outgoing ports we restricted the possible combinations.
To demonstrate the use of such a task you could run:
The above command would then correlate all incoming traffic data with outgoing traffic by port over 1h windows.