Github user qingwen220 commented on the issue:
https://github.com/apache/incubator-eagle/pull/573
http://localhost:9090/rest/metadata/alerts/batch
`[
{
"alertId": "c961dae1-b023-4851-a908-d1dc2cc138bd",
"siteId": "sandbox",
"appIds": [
"HDFSAUDITLOGAPPLICATION_SANDBOX"
],
"policyId": "test",
"policyValue": "from
HDFS_AUDIT_LOG_ENRICHED_STREAM_SANDBOX[str:contains(src,'/tmp/test') and
((cmd=='rename' and str:contains(dst, '.Trash')) or cmd=='delete')] select *
insert into hdfs_audit_log_enriched_stream_out",
"alertTimestamp": 0,
"alertData": {
"securityZone": "NA",
"dst":
"/user/hdfs/.Trash/Current/tmp/test/subtest/private1477563438822",
"sensitivityType": "NA",
"src": "/tmp/test/subtest/private",
"allowed": "true",
"host": "192.168.0.1",
"cmd": "rename",
"user": "hdfs",
"timestamp": "2016-10-27 18:17:18"
}
},
{
"alertId": "9ac087e8-8e44-4f86-8a45-09942b48c9bf",
"siteId": "sandbox",
"appIds": [
"HDFSAUDITLOGAPPLICATION_SANDBOX"
],
"policyId": "test",
"policyValue": "from
HDFS_AUDIT_LOG_ENRICHED_STREAM_SANDBOX[str:contains(src,'/tmp/test') and
((cmd=='rename' and str:contains(dst, '.Trash')) or cmd=='delete')] select *
insert into hdfs_audit_log_enriched_stream_out",
"alertTimestamp": 0,
"alertData": {
"securityZone": "NA",
"dst":
"/user/hdfs/.Trash/Current/tmp/test/subtest/private1477563487890",
"sensitivityType": "NA",
"src": "/tmp/test/subtest/private",
"allowed": "true",
"host": "192.168.0.1",
"cmd": "rename",
"user": "hdfs",
"timestamp": "2016-10-27 18:18:07"
}
}
]`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---