Log queries to /tmp/query-log.<pid>
Script for creating local docs from query logs
Use live database, not tickplant database.