added offset and limit in logQueryPlugin.java