allowed logs command to be run in query