elog_search
Find electronic logbook entries by full-text regex, attribute filters, or date range. Retrieve matching entries with excerpts, metadata, and attachments to locate records quickly.
Instructions
Search logbook entries by full text, attributes, and/or date.
Args: text: Regular expression matched against entry message bodies. Use ^…$ anchors for exact matches. attributes: Exact attribute filters as regular expressions, e.g. {"Author": "^jdoe$", "Category": "DAQ"}. date_from: Inclusive range start, 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM[:SS]'. date_to: Inclusive range end, same formats (time defaults to 23:59:59). last_days: Show entries from the last N days instead of an explicit range. logbook: Logbook name to search, or "*" to search all known logbooks. max_results: Maximum number of entries returned per page (server cap 100000). reverse: Sort newest-first when true, oldest-first when false.
Returns {"total": int, "entries": [{id, logbook?, date_raw, date_iso?, attributes{}, text_excerpt, encoding, encoding_name, attachments[], reply_to[], in_reply_to?, url}]}.
Each entry's text_excerpt is a ~500-char window centred on the first
occurrence of the search phrase (when text is provided). The full entry
body may contain additional matches; use elog_get_entry for the complete
text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| date_to | No | ||
| logbook | No | * | |
| reverse | No | ||
| date_from | No | ||
| last_days | No | ||
| attributes | No | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||