base/frameworks/logging/writers/sqlite.zeek
- LogSQLite
Interface for the SQLite log writer. Redefinable options are available to tweak the output format of the SQLite reader.
See SQLite Input/Logging for an introduction on how to use the SQLite log writer.
The SQL writer currently supports one writer-specific filter option via
config
: setting tablename
sets the name of the table that is used
or created in the SQLite database. An example for this is given in the
introduction mentioned above.
- Namespace:
LogSQLite
Summary
Redefinable Options
String to use for empty fields. |
|
|
If changed from SQLITE_JOURNAL_MODE_DEFAULT, runs the PRAGMA journal_mode statement with the provided value after connecting to the SQLite database. |
Separator between set elements. |
|
If changed from SQLITE_SYNCHRONOUS_DEFAULT, runs the PRAGMA synchronous statement with the provided value after connecting to the SQLite database. |
|
String to use for an unset &optional field. |
Types
Values supported for SQLite’s PRAGMA journal_mode statement. |
|
Values supported for SQLite’s PRAGMA synchronous statement. |
Detailed Interface
Redefinable Options
- LogSQLite::empty_field
-
String to use for empty fields. This should be different from unset_field to make the output unambiguous.
- LogSQLite::journal_mode
- Type:
- Attributes:
- Default:
LogSQLite::SQLITE_JOURNAL_MODE_DEFAULT
If changed from SQLITE_JOURNAL_MODE_DEFAULT, runs the PRAGMA journal_mode statement with the provided value after connecting to the SQLite database. SQLite’s journal_mode documentation for more details around performance, data safety trade offs and interaction with the PRAGMA synchronous statement.
- LogSQLite::set_separator
-
Separator between set elements.
- LogSQLite::synchronous
- Type:
- Attributes:
- Default:
LogSQLite::SQLITE_SYNCHRONOUS_DEFAULT
If changed from SQLITE_SYNCHRONOUS_DEFAULT, runs the PRAGMA synchronous statement with the provided value after connecting to the SQLite database. See SQLite’s synchronous documentation for more details around performance and data safety trade offs.
- LogSQLite::unset_field
-
String to use for an unset &optional field.
Types
- LogSQLite::SQLiteJournalMode
- Type:
-
- LogSQLite::SQLITE_JOURNAL_MODE_DEFAULT
- LogSQLite::SQLITE_JOURNAL_MODE_DELETE
- LogSQLite::SQLITE_JOURNAL_MODE_TRUNCATE
- LogSQLite::SQLITE_JOURNAL_MODE_PERSIST
- LogSQLite::SQLITE_JOURNAL_MODE_MEMORY
- LogSQLite::SQLITE_JOURNAL_MODE_WAL
- LogSQLite::SQLITE_JOURNAL_MODE_OFF
Values supported for SQLite’s PRAGMA journal_mode statement.