| 1 |
table_create Logs TABLE_HASH_KEY ShortText |
| 2 |
column_create Logs timestamp COLUMN_SCALAR Time |
| 3 |
|
| 4 |
table_create Times TABLE_PAT_KEY Time |
| 5 |
column_create Times logs_timestamp COLUMN_INDEX Logs timestamp |
| 6 |
|
| 7 |
table_create LoadedLogs TABLE_HASH_KEY Logs |
| 8 |
|
| 9 |
load --table Logs |
| 10 |
[ |
| 11 |
{ |
| 12 |
"_key": "2015-02-03:1", |
| 13 |
"timestamp": "2015-02-03 10:49:00" |
| 14 |
}, |
| 15 |
{ |
| 16 |
"_key": "2015-02-03:2", |
| 17 |
"timestamp": "2015-02-03 12:49:00" |
| 18 |
}, |
| 19 |
{ |
| 20 |
"_key": "2015-02-04:1", |
| 21 |
"timestamp": "2015-02-04 00:00:00" |
| 22 |
} |
| 23 |
] |
| 24 |
|
| 25 |
log_level --level info |
| 26 |
#@add-important-log-levels info |
| 27 |
#@add-ignore-log-pattern /\A\[io\]/ |
| 28 |
#@collect-query-log true |
| 29 |
select \ |
| 30 |
Logs \ |
| 31 |
--load_table LoadedLogs \ |
| 32 |
--load_columns "_key" \ |
| 33 |
--load_values "_key" \ |
| 34 |
--limit 0 |
| 35 |
|
| 36 |
select \ |
| 37 |
--table LoadedLogs \ |
| 38 |
--filter 'timestamp >= "2015-02-03 12:49:00"' |
| 39 |
#@collect-query-log false |
| 40 |
#@remove-ignore-log-pattern /\A\[io\]/ |
| 41 |
#@remove-important-log-levels info |
| 42 |
log_level --level notice |