File SolidSyslogStoreCategories.h¶
FileList > Core > Interface > SolidSyslogStoreCategories.h
Portable category constants (uint16_t macros) for the Store role: SOLIDSYSLOG_CAT_STORE_WRITE_FAILED, SOLIDSYSLOG_CAT_STORE_FROZEN, SOLIDSYSLOG_CAT_STORE_RECORD_DISCARDED, SOLIDSYSLOG_CAT_STORE_RECORDS_LOST and SOLIDSYSLOG_CAT_STORE_THRESHOLD_CROSSED.
#include <stdint.h>#include "SolidSyslogErrorCategory.h"
Macro Definition Documentation¶
SOLIDSYSLOG_CAT_STORE_FROZEN¶
The store's device failed, so the store will not use it again.
event->Detail names the operation that failed. From then on the store keeps nothing and is transient, so Service sends each record straight to the sender; the records it held stay on the device, untouched, for the next start. Nothing recovers it short of destroying and creating it again. Raised once.
SOLIDSYSLOG_CAT_STORE_RECORDS_LOST¶
The store lost records to its discard policy, which is working as configured: a full store refused the record being written, or evicted its oldest block while that block still held records not yet sent.
event->Detail says which. Raised as a WARNING, once per run of losses: a run of refusals ends with the next record the store keeps, and a run of evictions with the next block rotation that evicts nothing unsent. Under the Halt policy the logger stops at the refusal and writes nothing more, so it is raised once.
SOLIDSYSLOG_CAT_STORE_RECORD_DISCARDED¶
The store discarded a stored record it could not deliver.
event->Detail says why: its security policy rejected it, in which case it is stepped past and left on the device as it is; or it was corrupt, in which case where it ends is unknown and the rest of its block is discarded with it. Raised once per run of discarded records, naming the first fault of the run; the next record that reads cleanly ends the run, so the fault after that is reported afresh.
SOLIDSYSLOG_CAT_STORE_THRESHOLD_CROSSED¶
The store's used bytes rose from below its capacity threshold to the threshold or past it.
Raised as a WARNING, once per crossing: used bytes falling back below the threshold re-arms it, which a block sent out or evicted can do, so a store evicting under the Oldest policy whose threshold lies in its last block crosses again as each block refills. A threshold at the store's whole capacity is crossed when the full store refuses a record, and re-armed by the next record the store keeps. A store resumed at or above its threshold raises it when it is created.
SOLIDSYSLOG_CAT_STORE_WRITE_FAILED¶
Portable Store-role error categories.
They say what a fault cost the store; whatever was at fault - the device or file beneath it, or the security policy - reports the cause itself. The store could not keep a record because its security policy would not seal it. The record is not retained, and the policy reports why. Raised once per run of such records; the next record the store keeps ends the run. A record the discard policy turns away raises SOLIDSYSLOG_CAT_STORE_RECORDS_LOST instead, and a device that fails raises SOLIDSYSLOG_CAT_STORE_FROZEN.
The documentation for this class was generated from the following file Core/Interface/SolidSyslogStoreCategories.h