-
Notifications
You must be signed in to change notification settings - Fork 0
Sift Intro.
SIFT is a project to help IT professionals to write custom stream parsers (such as log or data stream) in a way that can be quickly understood by their peers because they will follow the same path of creation. This framework's goal is to reach users that are between beginner to moderate level users of python.
The mission is to provide some core elements such as the messy business of parsing, the definition of state (what we parsed means to us), and the process of reporting the state to the users (i.e. getting that information to monitors or reports for statistics, or other views).
The idea is that a log or database or network socket can be searched for key phrases that mean something which is in one state or another. Perhaps a log has a set of lines in it that show a start or restart of a service. It would be nice to know when that service started and if it started cleanly. Or perhaps it started but waiting on some other service to initialize before it can get going. These states could then represent a traffic light state (red, yellow, green) that can be sent to a monitoring system or reporting system.
This framework also provides a State class which can be used to define the state type. In some cases a traffic light system is needed but in others a more or less complex system is needed such as in a logger system (CRITICAL, ERROR, WARN, INFO, DEBUG) or a binary system (ON, OFF) or a service state (DISABLED, DOWN, STARTING, UP, RESTARTING, KILLED).