Using ./cbq on internal log file(s)

Since ./cbq can be used on plain files also It be great to use it on log file(s) that only have JSON data and/or using CBFT would be great too. SELECT * FROM file_name_here WHERE message LIKE “failed over%”;

Hi @househippo,

You can run log files containing queries using the new cbq shell that was released with 4.5.0.

You can use the SOURCE shell command as follows :
./cbq

\source log.sql;

or use the input file option -f

./cbq -f=log.sql

Thanks

1 Like