Actions
Bug #664
closed
VJ
VJ
unified2: alert file overwritten if rotate happens within second of creation
Bug #664:
unified2: alert file overwritten if rotate happens within second of creation
Affected Versions:
Effort:
Difficulty:
Label:
Description
The unified2 alert files use a timestamp with second precision. When the file size limit is reached, it is rotated, meaning a new file with a new timestamp is created. However, if this timestamp (in seconds) is equal to the last files timestamp, this file will be overwritten (truncated).
VJ Updated by Victor Julien almost 14 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
Fixed this by switching to append open instead of truncate open. This means that in case we rotate within a second we will actually ignore the limit.
As the limit is reset internally, the file can grow up to twice the limit or more if multiple rotates happen all within that 1 second.
This approach was chosen to prevent loosing events.
Actions