<p>Event filters are defined in a JSON object like the following:</p>

<pre>
{
  "defaultAction" : ("accept", "discard"),
  "rules" : [
    {
      "action" : ("accept", "discard"),
      "fields" : [
        {
          "name" : "fieldName",
          "match" : "regex"
        }
      ]
    }
  ]
}
</pre>

<p>
A filter has a default action and a list of rules, in order of precedence.
Each rule defines an action, and a list of fields to match against the
audit event.
</p>

<p>
A rule is "accepted" if all the listed field entries match the audit
event. At that point, the action declared by the rule is taken.
</p>

<p>
If no rules match the event, the default action is taken. Actions
default to "accept" if not defined in the JSON object.
</p>

<p>
The following is the list of fields that can be filtered for HBase events:
</p>
<ul>
  <li>allowed: whether the operation was allowed or denied.</li>
  <li>username: the user performing the action.</li>
  <li>tableName: the table affected by the operation.</li>
  <li>family: the column family affected by the operation.</li>
  <li>qualifier: the qualifier the operation.</li>
  <li>action: the action being performed.</li>
</ul>
