Returns log outputs from the primary HarperDB log based on the provided search criteria. Read more about HarperDB logging here: https://docs.harperdb.io/docs/logging#read-logs-via-the-api.
Operation is restricted to super_user roles only
operation (required) - must always be read_Log
start (optional) - result to start with. Default is 0, the first log in hdb.log. Must be a number
limit (optional) - number of results returned. Default behavior is 1000. Must be a number
level (optional) - error level to filter on. Default behavior is all levels. Must be notify, error, warn, info, debug or trace
from (optional) - date to begin showing log results. Must be YYYY-MM-DD or YYYY-MM-DD hh:mm:ss. Default is first log in hdb.log
until (optional) - date to end showing log results. Must be YYYY-MM-DD or YYYY-MM-DD hh:mm:ss. Default is last log in hdb.log
order (optional) - order to display logs desc or asc by timestamp. By default, will maintain hdb.log order
[ {"level":"notify","message":"Connected to cluster server.","timestamp":"2021-01-25T23:03:20.710Z","thread":"main/0","tags": [] }, {"level":"warn","message":"Login failed","timestamp":"2021-01-25T22:24:45.113Z","thread":"http/9","tags": [] }, {"level":"error","message":"unknown attribute 'name and breed'","timestamp":"2021-01-25T22:23:24.167Z","thread":"http/9","tags": [] }]
Read Transaction Log
Returns all transactions logged for the specified database table. You may filter your results with the optional from, to, and limit fields. Read more about HarperDB transaction logs here: https://docs.harperdb.io/docs/transaction-logging#read_transaction_log.
Operation is restricted to super_user roles only
operation (required) - must always be read_transaction_log
schema (required) - schema under which the transaction log resides
table (required) - table under which the transaction log resides
from (optional) - time format must be millisecond-based epoch in UTC
to (optional) - time format must be millisecond-based epoch in UTC
limit (optional) - max number of logs you want to receive. Must be a number
{"message":"Starting job with id 26a6d3a6-6d77-40f9-bee7-8d6ef479a126"}
Read Audit Log
AuditLog must be enabled in the HarperDB configuration file to make this request. Returns a verbose history of all transactions logged for the specified database table, including original data records. You may filter your results with the optional search_type and search_values fields. Read more about HarperDB transaction logs here: https://docs.harperdb.io/docs/transaction-logging#read_audit_log.
Operation is restricted to super_user roles only
operation (required) - must always be read_audit_log
schema (required) - schema under which the transaction log resides
table (required) - table under which the transaction log resides
search_type (optional) - possibilities are hash_value, timestamp and username
search_values (optional) - an array of string or numbers relating to search_type
AuditLog must be enabled in the HarperDB configuration file to make this request. Returns the transactions logged for the specified database table between the specified time window. Read more about HarperDB transaction logs here: https://docs.harperdb.io/docs/transaction-logging#read_audit_log.
Operation is restricted to super_user roles only
operation (required) - must always be read_audit_log
schema (required) - schema under which the transaction log resides
table (required) - table under which the transaction log resides
search_type (optional) - timestamp
search_values (optional) - an array containing a maximum of two values [from_timestamp, to_timestamp] defining the range of transactions you would like to view.
Timestamp format is millisecond-based epoch in UTC
If no items are supplied then all transactions are returned
If only one entry is supplied then all transactions after the supplied timestamp will be returned
AuditLog must be enabled in the HarperDB configuration file to make this request. Returns the transactions logged for the specified database table which were committed by the specified user. Read more about HarperDB transaction logs here: https://docs.harperdb.io/docs/transaction-logging#read_audit_log.
Operation is restricted to super_user roles only
operation (required) - must always be read_audit_log
schema (required) - schema under which the transaction log resides
table (required) - table under which the transaction log resides
search_type (optional) - username
search_values (optional) - the HarperDB user for whom you would like to view transactions
AuditLog must be enabled in the HarperDB configuration file to make this request. Returns the transactions logged for the specified database table which were committed to the specified hash value(s). Read more about HarperDB transaction logs here: https://docs.harperdb.io/docs/transaction-logging#read_audit_log.
Operation is restricted to super_user roles only
operation (required) - must always be read_audit_log
schema (required) - schema under which the transaction log resides
table (required) - table under which the transaction log resides
search_type (optional) - hash_value
search_values (optional) - an array of hash_attributes for which you wish to see transaction logs
AuditLog must be enabled in the HarperDB configuration file to make this request. Deletes audit log data for the specified database table that is older than the specified timestamp.
Operation is restricted to super_user roles only
operation (required) - must always be delete_audit_logs_before
schema (required) - schema under which the transaction log resides. Must be a string
table (required) - table under which the transaction log resides. Must be a string
timestamp (required) - records older than this date will be deleted. Format is millisecond-based epoch in UTC