Storage backend for SQLite3
Toplevel sqliteStorage
Categories:
Storage backend for SQLite3
Configuration
{
"type" : "sqlite",
"database_path" : "/path/for/databases",
"flags" : [
"open_flag=X"
],
"username" : "myuser",
"password" : "mypass"
}
type
: Has to besqlite
database_path
: The backed creates tables based on the cluster names in this pathflags
: Flags when opening SQLite. For things like timeouts (_timeout=5000
), storage settings (_journal=WAL
), …username
: If given, the database is opened with the given usernamepassword
: If given andusername
is also given, use it to open the database
Storage
The Sqlite backend stores CCEvents
and CCLog
messages in distict tables named <cluster>_events
and <cluster>_logs
respecively. It does not make use of distinct tables to hold specific and returning parts of CCEvents
and CCLog
messages (namely hostname
tag, type
tag and typeid
tag). The timestamps of the messages are stored as UNIX timestamps with precision in seconds.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.