1. A non-transitory computer readable storage medium with Instructions executed by a processor to: intercept a query statement at a master machine or a machine delegated to receive query statements sent to the master machine, wherein the query statement is a distributed storage and distributed processing query statement from a client machine that is processed by a distributed storage and distributed processing system; evaluate tokens associated with the query statement to selectively identify a pattern match, wherein the tokens are evaluated to selectively identify a pattern match of connection pattern tokens, login pattern tokens and query pattern tokens; and form altered tokens for the query statement in response to the pattern match to form a revised query statement, wherein the revised query statement is produced in response to application of a policy rule, wherein the revised query statement maintains computation, logic and procedure of the query statement, but alters parameters of the query statement as specified by the policy rule.