log-parser
log-parser copied to clipboard
Add a merge functionality to logData
We should be able to merge two LogData objects.
Rules:
- Both Log Data need o have the same keys (ParseDefinition keys)
Actions. For a LogData "A" with ParseDefinition "a", and a LogData "B" with ParseDefinition "b" (B into A):
- Enrich ParseDefinition "a" with that of "b"
- For each added ParseDefinitionEntry: 2.1. Set it to optional
Merge rules:
- If key matches : increment existing, ignore optional values - send warning
- If if key is new : add values