7.16. 查询审计¶
GeoMesa提供了一个Java SPI来审计查询。可以在创建 DataStore
通过设置参数 geomesa.query.audit
至 true
在连接图中。审核以记录器名称写入日志文件 org.locationtech.geomesa.utils.audit.AuditLogger$
。在Acumulo中,还将审核写入 <catalog>_queries
桌子。
由于GeoMesa可以在许多环境中运行,因此确定 who 执行后,查询被委托给服务类。服务需要实施 org.locationtech.geomesa.utils.audit.AuditProvider
. Third-party implementations can be enabled by placing them on the classpath and including a special service descriptor file. See the Oracle Javadoc 有关实施服务提供商的详细信息,请参阅。
GeoMesa Geoserver插件与 AuditProvider
它从Geoserver的Spring安全框架中提取用户凭据- org.locationtech.geomesa.security.SpringAuditProvider
。