[jira] [Commented] (EAGLE-239) Alert list and details are not correctly displayed

2016-04-12 Thread Jilin, Jiang (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15236862#comment-15236862
 ] 

Jilin, Jiang commented on EAGLE-239:


[~haoch][~ralphsu]Current alert entity has removed the 
`alertContext.properties.message`. And I found it has the prop `alertMessage`. 
Is that replacement of `alertContext.properties.message`? If so, I will do the 
update.

> Alert list and details are not correctly displayed
> --
>
> Key: EAGLE-239
> URL: https://issues.apache.org/jira/browse/EAGLE-239
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.3.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
>  Labels: front-end
> Fix For: v0.4.0
>
> Attachments: alert-detail.png, alert-list.png
>
>
> Detail contents of policy alerts are empty, but the alert entity is
> {code}
> {"meta":{"elapsedms":2,"totalResults":1,"lastTimestamp":0,"firstTimestamp":0},"success":true,"obj":[{"prefix":"hadoop","timestamp":1460439827376,"tags":{"site":"sandbox","alertSource":"57347@LM-SHC-00950798","application":"cassandraQueryLog","sourceStreams":"cassandraQueryLogStream","policyId":"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy","hostname":null,"alertExecutorId":"cassandraQueryLogExecutor"},"encodedRowkey":"tv4MJX___qv3ALxPlXeMWPh3G-THMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE","alertContext":"{\"site\":\"sandbox\",\"application\":\"cassandraQueryLog\",\"host\":\"/192.168.6.227\",\"ks\":\"dg_keyspace\",\"policyDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/policyDetail?policy=cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy&site=sandbox&executor=cassandraQueryLogExecutor\",\"masked_columns\":\"bank|ccno|email|ip|name|sal|ssn|tel|url\",\"type\":\"CQL_SELECT\",\"alertMessage\":\"The
>  Policy \\\"cf_ customer_details_and_ ks_ dg_keyspace_policy\\\" has been 
> detected with the below information: timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertEvent\":\"timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertTimestamp\":\"2016-04-12 
> 05:43:47\",\"timestamp\":\"1455574202864\",\"operation\":\"CQL_SELECT\",\"category\":\"QUERY\",\"alertDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/alertDetail/tv4MJX%5F%5F%5Fqv3ALxPlXeMWPh3G%2DTHMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE\",\"source\":\"/192.168.6.227\",\"sourceStreams\":\"cassandraQueryLogStream\",\"policyId\":\"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy\",\"other_columns\":\"id|npi\",\"cf\":\"customer_details\",\"user\":\"jaspa\"}"}],"type":"org.apache.eagle.alert.entity.AlertAPIEntity"}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (EAGLE-239) Alert list and details are not correctly displayed

2016-04-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15238649#comment-15238649
 ] 

ASF GitHub Bot commented on EAGLE-239:
--

GitHub user zombieJ opened a pull request:

https://github.com/apache/incubator-eagle/pull/145

EAGLE-239 UI Fix alert detail context

Alert entity use alertContext directly instead of alertContext.properties. 
Which sync update with UI.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/zombieJ/incubator-eagle fixAlert

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-eagle/pull/145.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #145


commit 4e3f59f1a1490de95b9cb6cc03196a159fdb034c
Author: jiljiang 
Date:   2016-04-12T09:26:57Z

add json parse

commit 7a509d7108ccf22b38d031120e3f5778e075f297
Author: jiljiang 
Date:   2016-04-13T05:41:48Z

add raw data

commit 1894c16a0698267e1fc995271bb940ab78c9b370
Author: jiljiang 
Date:   2016-04-13T05:47:31Z

add host




> Alert list and details are not correctly displayed
> --
>
> Key: EAGLE-239
> URL: https://issues.apache.org/jira/browse/EAGLE-239
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.3.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
>  Labels: front-end
> Fix For: v0.4.0
>
> Attachments: alert-detail.png, alert-list.png
>
>
> Detail contents of policy alerts are empty, but the alert entity is
> {code}
> {"meta":{"elapsedms":2,"totalResults":1,"lastTimestamp":0,"firstTimestamp":0},"success":true,"obj":[{"prefix":"hadoop","timestamp":1460439827376,"tags":{"site":"sandbox","alertSource":"57347@LM-SHC-00950798","application":"cassandraQueryLog","sourceStreams":"cassandraQueryLogStream","policyId":"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy","hostname":null,"alertExecutorId":"cassandraQueryLogExecutor"},"encodedRowkey":"tv4MJX___qv3ALxPlXeMWPh3G-THMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE","alertContext":"{\"site\":\"sandbox\",\"application\":\"cassandraQueryLog\",\"host\":\"/192.168.6.227\",\"ks\":\"dg_keyspace\",\"policyDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/policyDetail?policy=cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy&site=sandbox&executor=cassandraQueryLogExecutor\",\"masked_columns\":\"bank|ccno|email|ip|name|sal|ssn|tel|url\",\"type\":\"CQL_SELECT\",\"alertMessage\":\"The
>  Policy \\\"cf_ customer_details_and_ ks_ dg_keyspace_policy\\\" has been 
> detected with the below information: timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertEvent\":\"timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertTimestamp\":\"2016-04-12 
> 05:43:47\",\"timestamp\":\"1455574202864\",\"operation\":\"CQL_SELECT\",\"category\":\"QUERY\",\"alertDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/alertDetail/tv4MJX%5F%5F%5Fqv3ALxPlXeMWPh3G%2DTHMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE\",\"source\":\"/192.168.6.227\",\"sourceStreams\":\"cassandraQueryLogStream\",\"policyId\":\"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy\",\"other_columns\":\"id|npi\",\"cf\":\"customer_details\",\"user\":\"jaspa\"}"}],"type":"org.apache.eagle.alert.entity.AlertAPIEntity"}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (EAGLE-239) Alert list and details are not correctly displayed

2016-04-13 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15238921#comment-15238921
 ] 

ASF GitHub Bot commented on EAGLE-239:
--

GitHub user qingwen220 opened a pull request:

https://github.com/apache/incubator-eagle/pull/146

EAGLE-

https://issues.apache.org/jira/browse/EAGLE-239
https://issues.apache.org/jira/browse/EAGLE-221
https://issues.apache.org/jira/browse/EAGLE-223

Bug fix
   - properties in AlertContext is missing
   - entities persistence into database duplicates 
Improvements
  - Add notificationType select on UI
  - Multiple notification instances support for each notification type at 
backend
  - Update AlertNotificationEntity and add a field “Fields” to describe the 
template for each notification type. 



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/zombieJ/incubator-eagle notify

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-eagle/pull/146.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #146


commit 5641ec320d52a694e824e8825fe8357f9c06cbc3
Author: jiljiang 
Date:   2016-04-08T04:14:00Z

support multi notification

commit d1cd1ffa9ac9aee31ddbc0e7acf2e6940ce43e04
Author: jiljiang 
Date:   2016-04-08T07:18:52Z

update init file

commit bb5a1bc79f7991309838e6348373f1b281423610
Author: Zhao, Qingwen 
Date:   2016-04-08T07:56:53Z

add Field fieldList in AlertNotificationEntity

commit 711ee93a2ff615f4ad9fae60ec877eaf3abc6d23
Author: Zhao, Qingwen 
Date:   2016-04-08T07:56:53Z

add Field fieldList in AlertNotificationEntity

commit 4d84853069801e2afb38df8cec313a0dd1a07e0f
Author: Zhao, Qingwen 
Date:   2016-04-08T07:56:53Z

add Field fieldList in AlertNotificationEntity

commit 2791705cd6895448d75bae1719bc7de0823e0660
Author: Zhao, Qingwen 
Date:   2016-04-11T02:33:46Z

change fieldList fields

commit 42c4b785df31d738aa55ecbe0419d5282ffeb125
Author: jiljiang 
Date:   2016-04-11T03:17:49Z

notification plugin able

commit 8bfb361ae6565a49bf1125348b3c45450dabd01f
Author: jiljiang 
Date:   2016-04-11T07:31:18Z

add delay notification type

commit 14fd4492e1aa10d574d6eea5e78bd0f2657e6bc1
Author: jiljiang 
Date:   2016-04-11T07:37:29Z

ignore if no default notification

commit c2e4d78bde25c5990c2c1f47a5256fc87e616903
Author: jiljiang 
Date:   2016-04-11T07:46:12Z

do not provide default notification

commit fe0a6aa72c2051a828f83033da0aac419f804617
Author: Zhao, Qingwen 
Date:   2016-04-11T11:26:40Z

add multiple instance for each notification type

commit 1067595d2b20a226aba3dbcc16e464cfc5fda142
Author: Zhao, Qingwen 
Date:   2016-04-11T11:26:40Z

add multiple instance for each notification type

commit 3834f30928c6335fe8f9de71bf7ad66094db7a75
Author: Zhao, Qingwen 
Date:   2016-04-12T09:09:40Z

disable useless classes and refactor alert deduplication

commit d0170184005dd8e2d1f84ab62890ff768c19c0ac
Author: jiljiang 
Date:   2016-04-12T09:38:42Z

rm dedup of email

commit 29d890aaff0af45d2e52989066246359797d0669
Author: Zhao, Qingwen 
Date:   2016-04-13T08:50:30Z

fix properties in alertContext missing bug




> Alert list and details are not correctly displayed
> --
>
> Key: EAGLE-239
> URL: https://issues.apache.org/jira/browse/EAGLE-239
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.3.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
>  Labels: front-end
> Fix For: v0.4.0
>
> Attachments: alert-detail.png, alert-list.png
>
>
> Detail contents of policy alerts are empty, but the alert entity is
> {code}
> {"meta":{"elapsedms":2,"totalResults":1,"lastTimestamp":0,"firstTimestamp":0},"success":true,"obj":[{"prefix":"hadoop","timestamp":1460439827376,"tags":{"site":"sandbox","alertSource":"57347@LM-SHC-00950798","application":"cassandraQueryLog","sourceStreams":"cassandraQueryLogStream","policyId":"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy","hostname":null,"alertExecutorId":"cassandraQueryLogExecutor"},"encodedRowkey":"tv4MJX___qv3ALxPlXeMWPh3G-THMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE","alertContext":"{\"site\":\"sandbox\",\"application\":\"cassandraQueryLog\",\"host\":\"/192.168.6.227\",\"ks\":\"dg_keyspace\",\"policyDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/policyDetail?policy=cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy&site=sandbox&executor=cassandraQueryLogExecutor\",\"masked_columns\":\"bank|ccno|email|ip|name|sal|ssn|tel|url\",\"type\":\"CQL_SELECT\",\"alertMessage\":\"The
>  Policy \\\"cf_ customer_details_and_ 

[jira] [Commented] (EAGLE-239) Alert list and details are not correctly displayed

2016-04-13 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15238927#comment-15238927
 ] 

ASF GitHub Bot commented on EAGLE-239:
--

Github user qingwen220 closed the pull request at:

https://github.com/apache/incubator-eagle/pull/146


> Alert list and details are not correctly displayed
> --
>
> Key: EAGLE-239
> URL: https://issues.apache.org/jira/browse/EAGLE-239
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.3.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
>  Labels: front-end
> Fix For: v0.4.0
>
> Attachments: alert-detail.png, alert-list.png
>
>
> Detail contents of policy alerts are empty, but the alert entity is
> {code}
> {"meta":{"elapsedms":2,"totalResults":1,"lastTimestamp":0,"firstTimestamp":0},"success":true,"obj":[{"prefix":"hadoop","timestamp":1460439827376,"tags":{"site":"sandbox","alertSource":"57347@LM-SHC-00950798","application":"cassandraQueryLog","sourceStreams":"cassandraQueryLogStream","policyId":"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy","hostname":null,"alertExecutorId":"cassandraQueryLogExecutor"},"encodedRowkey":"tv4MJX___qv3ALxPlXeMWPh3G-THMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE","alertContext":"{\"site\":\"sandbox\",\"application\":\"cassandraQueryLog\",\"host\":\"/192.168.6.227\",\"ks\":\"dg_keyspace\",\"policyDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/policyDetail?policy=cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy&site=sandbox&executor=cassandraQueryLogExecutor\",\"masked_columns\":\"bank|ccno|email|ip|name|sal|ssn|tel|url\",\"type\":\"CQL_SELECT\",\"alertMessage\":\"The
>  Policy \\\"cf_ customer_details_and_ ks_ dg_keyspace_policy\\\" has been 
> detected with the below information: timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertEvent\":\"timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertTimestamp\":\"2016-04-12 
> 05:43:47\",\"timestamp\":\"1455574202864\",\"operation\":\"CQL_SELECT\",\"category\":\"QUERY\",\"alertDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/alertDetail/tv4MJX%5F%5F%5Fqv3ALxPlXeMWPh3G%2DTHMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE\",\"source\":\"/192.168.6.227\",\"sourceStreams\":\"cassandraQueryLogStream\",\"policyId\":\"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy\",\"other_columns\":\"id|npi\",\"cf\":\"customer_details\",\"user\":\"jaspa\"}"}],"type":"org.apache.eagle.alert.entity.AlertAPIEntity"}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (EAGLE-239) Alert list and details are not correctly displayed

2016-04-13 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15238929#comment-15238929
 ] 

ASF GitHub Bot commented on EAGLE-239:
--

GitHub user qingwen220 reopened a pull request:

https://github.com/apache/incubator-eagle/pull/146

EAGLE-

https://issues.apache.org/jira/browse/EAGLE-239
https://issues.apache.org/jira/browse/EAGLE-221
https://issues.apache.org/jira/browse/EAGLE-223

Bug fix
   - properties in AlertContext is missing
   - entities persistence into database duplicates 

Improvements
  - Add notificationType select on UI
  - Multiple notification instances support for each notification type at 
backend
  - Update AlertNotificationEntity and add a field “Fields” to describe the 
template for each notification type. 



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/zombieJ/incubator-eagle notify

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-eagle/pull/146.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #146


commit 5641ec320d52a694e824e8825fe8357f9c06cbc3
Author: jiljiang 
Date:   2016-04-08T04:14:00Z

support multi notification

commit d1cd1ffa9ac9aee31ddbc0e7acf2e6940ce43e04
Author: jiljiang 
Date:   2016-04-08T07:18:52Z

update init file

commit bb5a1bc79f7991309838e6348373f1b281423610
Author: Zhao, Qingwen 
Date:   2016-04-08T07:56:53Z

add Field fieldList in AlertNotificationEntity

commit 711ee93a2ff615f4ad9fae60ec877eaf3abc6d23
Author: Zhao, Qingwen 
Date:   2016-04-08T07:56:53Z

add Field fieldList in AlertNotificationEntity

commit 4d84853069801e2afb38df8cec313a0dd1a07e0f
Author: Zhao, Qingwen 
Date:   2016-04-08T07:56:53Z

add Field fieldList in AlertNotificationEntity

commit 2791705cd6895448d75bae1719bc7de0823e0660
Author: Zhao, Qingwen 
Date:   2016-04-11T02:33:46Z

change fieldList fields

commit 42c4b785df31d738aa55ecbe0419d5282ffeb125
Author: jiljiang 
Date:   2016-04-11T03:17:49Z

notification plugin able

commit 8bfb361ae6565a49bf1125348b3c45450dabd01f
Author: jiljiang 
Date:   2016-04-11T07:31:18Z

add delay notification type

commit 14fd4492e1aa10d574d6eea5e78bd0f2657e6bc1
Author: jiljiang 
Date:   2016-04-11T07:37:29Z

ignore if no default notification

commit c2e4d78bde25c5990c2c1f47a5256fc87e616903
Author: jiljiang 
Date:   2016-04-11T07:46:12Z

do not provide default notification

commit fe0a6aa72c2051a828f83033da0aac419f804617
Author: Zhao, Qingwen 
Date:   2016-04-11T11:26:40Z

add multiple instance for each notification type

commit 1067595d2b20a226aba3dbcc16e464cfc5fda142
Author: Zhao, Qingwen 
Date:   2016-04-11T11:26:40Z

add multiple instance for each notification type

commit 3834f30928c6335fe8f9de71bf7ad66094db7a75
Author: Zhao, Qingwen 
Date:   2016-04-12T09:09:40Z

disable useless classes and refactor alert deduplication

commit d0170184005dd8e2d1f84ab62890ff768c19c0ac
Author: jiljiang 
Date:   2016-04-12T09:38:42Z

rm dedup of email

commit 29d890aaff0af45d2e52989066246359797d0669
Author: Zhao, Qingwen 
Date:   2016-04-13T08:50:30Z

fix properties in alertContext missing bug




> Alert list and details are not correctly displayed
> --
>
> Key: EAGLE-239
> URL: https://issues.apache.org/jira/browse/EAGLE-239
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.3.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
>  Labels: front-end
> Fix For: v0.4.0
>
> Attachments: alert-detail.png, alert-list.png
>
>
> Detail contents of policy alerts are empty, but the alert entity is
> {code}
> {"meta":{"elapsedms":2,"totalResults":1,"lastTimestamp":0,"firstTimestamp":0},"success":true,"obj":[{"prefix":"hadoop","timestamp":1460439827376,"tags":{"site":"sandbox","alertSource":"57347@LM-SHC-00950798","application":"cassandraQueryLog","sourceStreams":"cassandraQueryLogStream","policyId":"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy","hostname":null,"alertExecutorId":"cassandraQueryLogExecutor"},"encodedRowkey":"tv4MJX___qv3ALxPlXeMWPh3G-THMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE","alertContext":"{\"site\":\"sandbox\",\"application\":\"cassandraQueryLog\",\"host\":\"/192.168.6.227\",\"ks\":\"dg_keyspace\",\"policyDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/policyDetail?policy=cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy&site=sandbox&executor=cassandraQueryLogExecutor\",\"masked_columns\":\"bank|ccno|email|ip|name|sal|ssn|tel|url\",\"type\":\"CQL_SELECT\",\"alertMessage\":\"The
>  Policy \\\"cf_ customer_detail

[jira] [Commented] (EAGLE-239) Alert list and details are not correctly displayed

2016-04-13 Thread Hao Chen (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15239110#comment-15239110
 ] 

Hao Chen commented on EAGLE-239:


1. Change "Data Source: cassandraQueryLog" to "Application: cassandraQueryLog"
2. Alert List view is still almost empty with "Alert Time" only.

> Alert list and details are not correctly displayed
> --
>
> Key: EAGLE-239
> URL: https://issues.apache.org/jira/browse/EAGLE-239
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.3.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
>  Labels: front-end
> Fix For: v0.4.0
>
> Attachments: alert-detail.png, alert-list.png
>
>
> Detail contents of policy alerts are empty, but the alert entity is
> {code}
> {"meta":{"elapsedms":2,"totalResults":1,"lastTimestamp":0,"firstTimestamp":0},"success":true,"obj":[{"prefix":"hadoop","timestamp":1460439827376,"tags":{"site":"sandbox","alertSource":"57347@LM-SHC-00950798","application":"cassandraQueryLog","sourceStreams":"cassandraQueryLogStream","policyId":"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy","hostname":null,"alertExecutorId":"cassandraQueryLogExecutor"},"encodedRowkey":"tv4MJX___qv3ALxPlXeMWPh3G-THMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE","alertContext":"{\"site\":\"sandbox\",\"application\":\"cassandraQueryLog\",\"host\":\"/192.168.6.227\",\"ks\":\"dg_keyspace\",\"policyDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/policyDetail?policy=cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy&site=sandbox&executor=cassandraQueryLogExecutor\",\"masked_columns\":\"bank|ccno|email|ip|name|sal|ssn|tel|url\",\"type\":\"CQL_SELECT\",\"alertMessage\":\"The
>  Policy \\\"cf_ customer_details_and_ ks_ dg_keyspace_policy\\\" has been 
> detected with the below information: timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertEvent\":\"timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertTimestamp\":\"2016-04-12 
> 05:43:47\",\"timestamp\":\"1455574202864\",\"operation\":\"CQL_SELECT\",\"category\":\"QUERY\",\"alertDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/alertDetail/tv4MJX%5F%5F%5Fqv3ALxPlXeMWPh3G%2DTHMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE\",\"source\":\"/192.168.6.227\",\"sourceStreams\":\"cassandraQueryLogStream\",\"policyId\":\"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy\",\"other_columns\":\"id|npi\",\"cf\":\"customer_details\",\"user\":\"jaspa\"}"}],"type":"org.apache.eagle.alert.entity.AlertAPIEntity"}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (EAGLE-239) Alert list and details are not correctly displayed

2016-04-13 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15239113#comment-15239113
 ] 

ASF GitHub Bot commented on EAGLE-239:
--

Github user haoch commented on the pull request:

https://github.com/apache/incubator-eagle/pull/145#issuecomment-209390478
  
1. Change "Data Source" to "Application"
2. Alert List view is still almost empty with "Alert Time" only.


> Alert list and details are not correctly displayed
> --
>
> Key: EAGLE-239
> URL: https://issues.apache.org/jira/browse/EAGLE-239
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.3.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
>  Labels: front-end
> Fix For: v0.4.0
>
> Attachments: alert-detail.png, alert-list.png
>
>
> Detail contents of policy alerts are empty, but the alert entity is
> {code}
> {"meta":{"elapsedms":2,"totalResults":1,"lastTimestamp":0,"firstTimestamp":0},"success":true,"obj":[{"prefix":"hadoop","timestamp":1460439827376,"tags":{"site":"sandbox","alertSource":"57347@LM-SHC-00950798","application":"cassandraQueryLog","sourceStreams":"cassandraQueryLogStream","policyId":"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy","hostname":null,"alertExecutorId":"cassandraQueryLogExecutor"},"encodedRowkey":"tv4MJX___qv3ALxPlXeMWPh3G-THMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE","alertContext":"{\"site\":\"sandbox\",\"application\":\"cassandraQueryLog\",\"host\":\"/192.168.6.227\",\"ks\":\"dg_keyspace\",\"policyDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/policyDetail?policy=cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy&site=sandbox&executor=cassandraQueryLogExecutor\",\"masked_columns\":\"bank|ccno|email|ip|name|sal|ssn|tel|url\",\"type\":\"CQL_SELECT\",\"alertMessage\":\"The
>  Policy \\\"cf_ customer_details_and_ ks_ dg_keyspace_policy\\\" has been 
> detected with the below information: timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertEvent\":\"timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertTimestamp\":\"2016-04-12 
> 05:43:47\",\"timestamp\":\"1455574202864\",\"operation\":\"CQL_SELECT\",\"category\":\"QUERY\",\"alertDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/alertDetail/tv4MJX%5F%5F%5Fqv3ALxPlXeMWPh3G%2DTHMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE\",\"source\":\"/192.168.6.227\",\"sourceStreams\":\"cassandraQueryLogStream\",\"policyId\":\"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy\",\"other_columns\":\"id|npi\",\"cf\":\"customer_details\",\"user\":\"jaspa\"}"}],"type":"org.apache.eagle.alert.entity.AlertAPIEntity"}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (EAGLE-239) Alert list and details are not correctly displayed

2016-04-13 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15240362#comment-15240362
 ] 

ASF GitHub Bot commented on EAGLE-239:
--

Github user qingwen220 commented on the pull request:

https://github.com/apache/incubator-eagle/pull/145#issuecomment-209711703
  
This pr may conflict with the entity model, as I have recovered the 
AlertAPIEntity. alertContext.properties remain here. 

You can check the newest code 


> Alert list and details are not correctly displayed
> --
>
> Key: EAGLE-239
> URL: https://issues.apache.org/jira/browse/EAGLE-239
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.3.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
>  Labels: front-end
> Fix For: v0.4.0
>
> Attachments: alert-detail.png, alert-list.png
>
>
> Detail contents of policy alerts are empty, but the alert entity is
> {code}
> {"meta":{"elapsedms":2,"totalResults":1,"lastTimestamp":0,"firstTimestamp":0},"success":true,"obj":[{"prefix":"hadoop","timestamp":1460439827376,"tags":{"site":"sandbox","alertSource":"57347@LM-SHC-00950798","application":"cassandraQueryLog","sourceStreams":"cassandraQueryLogStream","policyId":"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy","hostname":null,"alertExecutorId":"cassandraQueryLogExecutor"},"encodedRowkey":"tv4MJX___qv3ALxPlXeMWPh3G-THMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE","alertContext":"{\"site\":\"sandbox\",\"application\":\"cassandraQueryLog\",\"host\":\"/192.168.6.227\",\"ks\":\"dg_keyspace\",\"policyDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/policyDetail?policy=cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy&site=sandbox&executor=cassandraQueryLogExecutor\",\"masked_columns\":\"bank|ccno|email|ip|name|sal|ssn|tel|url\",\"type\":\"CQL_SELECT\",\"alertMessage\":\"The
>  Policy \\\"cf_ customer_details_and_ ks_ dg_keyspace_policy\\\" has been 
> detected with the below information: timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertEvent\":\"timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertTimestamp\":\"2016-04-12 
> 05:43:47\",\"timestamp\":\"1455574202864\",\"operation\":\"CQL_SELECT\",\"category\":\"QUERY\",\"alertDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/alertDetail/tv4MJX%5F%5F%5Fqv3ALxPlXeMWPh3G%2DTHMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE\",\"source\":\"/192.168.6.227\",\"sourceStreams\":\"cassandraQueryLogStream\",\"policyId\":\"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy\",\"other_columns\":\"id|npi\",\"cf\":\"customer_details\",\"user\":\"jaspa\"}"}],"type":"org.apache.eagle.alert.entity.AlertAPIEntity"}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (EAGLE-239) Alert list and details are not correctly displayed

2016-04-13 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15240462#comment-15240462
 ] 

ASF GitHub Bot commented on EAGLE-239:
--

Github user haoch commented on the pull request:

https://github.com/apache/incubator-eagle/pull/145#issuecomment-209724508
  
Could you please paste the previous and current sample alert json content 
here?


> Alert list and details are not correctly displayed
> --
>
> Key: EAGLE-239
> URL: https://issues.apache.org/jira/browse/EAGLE-239
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.3.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
>  Labels: front-end
> Fix For: v0.4.0
>
> Attachments: alert-detail.png, alert-list.png
>
>
> Detail contents of policy alerts are empty, but the alert entity is
> {code}
> {"meta":{"elapsedms":2,"totalResults":1,"lastTimestamp":0,"firstTimestamp":0},"success":true,"obj":[{"prefix":"hadoop","timestamp":1460439827376,"tags":{"site":"sandbox","alertSource":"57347@LM-SHC-00950798","application":"cassandraQueryLog","sourceStreams":"cassandraQueryLogStream","policyId":"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy","hostname":null,"alertExecutorId":"cassandraQueryLogExecutor"},"encodedRowkey":"tv4MJX___qv3ALxPlXeMWPh3G-THMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE","alertContext":"{\"site\":\"sandbox\",\"application\":\"cassandraQueryLog\",\"host\":\"/192.168.6.227\",\"ks\":\"dg_keyspace\",\"policyDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/policyDetail?policy=cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy&site=sandbox&executor=cassandraQueryLogExecutor\",\"masked_columns\":\"bank|ccno|email|ip|name|sal|ssn|tel|url\",\"type\":\"CQL_SELECT\",\"alertMessage\":\"The
>  Policy \\\"cf_ customer_details_and_ ks_ dg_keyspace_policy\\\" has been 
> detected with the below information: timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertEvent\":\"timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertTimestamp\":\"2016-04-12 
> 05:43:47\",\"timestamp\":\"1455574202864\",\"operation\":\"CQL_SELECT\",\"category\":\"QUERY\",\"alertDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/alertDetail/tv4MJX%5F%5F%5Fqv3ALxPlXeMWPh3G%2DTHMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE\",\"source\":\"/192.168.6.227\",\"sourceStreams\":\"cassandraQueryLogStream\",\"policyId\":\"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy\",\"other_columns\":\"id|npi\",\"cf\":\"customer_details\",\"user\":\"jaspa\"}"}],"type":"org.apache.eagle.alert.entity.AlertAPIEntity"}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (EAGLE-239) Alert list and details are not correctly displayed

2016-04-13 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15240488#comment-15240488
 ] 

ASF GitHub Bot commented on EAGLE-239:
--

Github user qingwen220 commented on the pull request:

https://github.com/apache/incubator-eagle/pull/145#issuecomment-209733102
  
**Previous**
```
{  
   "timestamp":1460542328725,
   "tags":{  
  "site":"sandbox",
  "alertSource":"30...@sandbox.hortonworks.com",
  "application":"hdfsAuditLog",
  "sourceStreams":"hdfsAuditLogEventStream",
  "policyId":"testHDFS",
  "alertExecutorId":"hdfsAuditLogAlertExecutor"
   },
   
"alertContext":"{\"site\":\"sandbox\",\"allowed\":\"true\",\"application\":\"hdfsAuditLog\",\"host\":\"10.115.59.58\",\"policyDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/policyDetail?policy=testHDFS&site=sandbox&executor=hdfsAuditLogAlertExecutor\",\"securityZone\":\"NA\",\"dst\":\"NA\",\"alertMessage\":\"The
 Policy \\\"testHDFS\\\" has been detected with the below information: 
timestamp=\\\"1438307675161\\\" allowed=\\\"true\\\" cmd=\\\"open\\\" 
host=\\\"10.115.59.58\\\" sensitivityType=\\\"NA\\\" securityZone=\\\"NA\\\" 
src=\\\"/tmp/private\\\" dst=\\\"NA\\\" user=\\\"b_pcatalogs\\\" 
\",\"alertEvent\":\"timestamp=\\\"1438307675161\\\" allowed=\\\"true\\\" 
cmd=\\\"open\\\" host=\\\"10.115.59.58\\\" sensitivityType=\\\"NA\\\" 
securityZone=\\\"NA\\\" src=\\\"/tmp/private\\\" dst=\\\"NA\\\" 
user=\\\"b_pcatalogs\\\" \",\"alertTimestamp\":\"2016-04-13 
10:12:08\",\"timestamp\":\"1438307675161\",\"cmd\":\"open\",\"alertDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/alertDetail/tv4MJX%5F%5F%5Fqvw5LBqlXeMWIuAAAjHMWiXlB00YOsfe8qEr9wdADXfR28vvscgmSntu59uW1ykBVB3iZNS\",\"sourceStreams\":\"hdfsAuditLogEventStream\",\"sensitivityType\":\"NA\",\"policyId\":\"testHDFS\",\"src\":\"/tmp/private\",\"user\":\"b_pcatalogs\"}";
   "serializeVerbose":true
}
```

**Current**
```
{  
   "timestamp":1460542328725,
   "tags":{  
  "site":"sandbox",
  "alertSource":"30...@sandbox.hortonworks.com",
  "application":"hdfsAuditLog",
  "sourceStreams":"hdfsAuditLogEventStream",
  "policyId":"testHDFS",
  "alertExecutorId":"hdfsAuditLogAlertExecutor"
   },
   "alertContext":{  
  "properties":{  
 "allowed":"true",
 "site":"sandbox",
 "application":"hdfsAuditLog",
 "host":"10.115.59.58",
 
"policyDetailUrl":"http://localhost:9099/eagle-service/#/dam/policyDetail?policy=testHDFS&site=sandbox&executor=hdfsAuditLogAlertExecutor";,
 "securityZone":"NA",
 "dst":"NA",
 "alertMessage":"The Policy \"testHDFS\" has been detected with the 
below information: timestamp=\"1438307675161\" allowed=\"true\" cmd=\"open\" 
host=\"10.115.59.58\" sensitivityType=\"NA\" securityZone=\"NA\" 
src=\"/tmp/private\" dst=\"NA\" user=\"b_pcatalogs\" ",
 "alertEvent":"timestamp=\"1438307675161\" allowed=\"true\" 
cmd=\"open\" host=\"10.115.59.58\" sensitivityType=\"NA\" securityZone=\"NA\" 
src=\"/tmp/private\" dst=\"NA\" user=\"b_pcatalogs\" ",
 "timestamp":"1438307675161",
 "alertTimestamp":"2016-04-13 10:12:08",
 "cmd":"open",
 
"alertDetailUrl":"http://localhost:9099/eagle-service/#/dam/alertDetail/tv4MJX%5F%5F%5Fqvw5LBqlXeMWIuAAAjHMWiXlB00YOsfe8qEr9wdADXfR28vvscgmSntu59uW1ykBVB3iZNS";,
 "sourceStreams":"hdfsAuditLogEventStream",
 "policyId":"testHDFS",
 "sensitivityType":"NA",
 "src":"/tmp/private",
 "user":"b_pcatalogs"
  }
   }
}

```


> Alert list and details are not correctly displayed
> --
>
> Key: EAGLE-239
> URL: https://issues.apache.org/jira/browse/EAGLE-239
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.3.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
>  Labels: front-end
> Fix For: v0.4.0
>
> Attachments: alert-detail.png, alert-list.png
>
>
> Detail contents of policy alerts are empty, but the alert entity is
> {code}
> {"meta":{"elapsedms":2,"totalResults":1,"lastTimestamp":0,"firstTimestamp":0},"success":true,"obj":[{"prefix":"hadoop","timestamp":1460439827376,"tags":{"site":"sandbox","alertSource":"57347@LM-SHC-00950798","application":"cassandraQueryLog","sourceStreams":"cassandraQueryLogStream","policyId":"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy","hostname":null,"alertExecutorId":"cassandraQueryLogExecutor"},"encodedRowkey":"tv4MJX___qv3ALxPlXeMWPh3G-THMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE","alertContext":"{\"site\":\"sandbox\",\"application

[jira] [Commented] (EAGLE-239) Alert list and details are not correctly displayed

2016-04-13 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15240493#comment-15240493
 ] 

ASF GitHub Bot commented on EAGLE-239:
--

Github user qingwen220 commented on the pull request:

https://github.com/apache/incubator-eagle/pull/145#issuecomment-209734147
  
**Before** 
```
{  
   "timestamp":1460542328725,
   "tags":{  
  "site":"sandbox",
  "alertSource":"30...@sandbox.hortonworks.com",
  "application":"hdfsAuditLog",
  "sourceStreams":"hdfsAuditLogEventStream",
  "policyId":"testHDFS",
  "alertExecutorId":"hdfsAuditLogAlertExecutor"
   },
   
"alertContext":"{\"site\":\"sandbox\",\"allowed\":\"true\",\"application\":\"hdfsAuditLog\",\"host\":\"10.0.0.1\",\"policyDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/policyDetail?policy=testHDFS&site=sandbox&executor=hdfsAuditLogAlertExecutor\",\"securityZone\":\"NA\",\"dst\":\"NA\",\"alertMessage\":\"The
 Policy \\\"testHDFS\\\" has been detected with the below information: 
timestamp=\\\"1438307675161\\\" allowed=\\\"true\\\" cmd=\\\"open\\\" 
host=\\\"10.0.0.1\\\" sensitivityType=\\\"NA\\\" securityZone=\\\"NA\\\" 
src=\\\"/tmp/private\\\" dst=\\\"NA\\\" user=\\\"userA\\\" 
\",\"alertEvent\":\"timestamp=\\\"1438307675161\\\" allowed=\\\"true\\\" 
cmd=\\\"open\\\" host=\\\"10.0.0.1\\\" sensitivityType=\\\"NA\\\" 
securityZone=\\\"NA\\\" src=\\\"/tmp/private\\\" dst=\\\"NA\\\" 
user=\\\"userA\\\" \",\"alertTimestamp\":\"2016-04-13 
10:12:08\",\"timestamp\":\"1438307675161\",\"cmd\":\"open\",\"alertDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/alertDetail/tv4MJX%5F%5F%5Fqvw5LBqlXeMWIuAAAjHMWiXlB00YOsfe8qEr9wdADXfR28vvscgmSntu59uW1ykBVB3iZNS\",\"sourceStreams\":\"hdfsAuditLogEventStream\",\"sensitivityType\":\"NA\",\"policyId\":\"testHDFS\",\"src\":\"/tmp/private\",\"user\":\"userA\"}";,
   "serializeVerbose":true
}
```
**Current**
```
{  
   "timestamp":1460542328725,
   "tags":{  
  "site":"sandbox",
  "alertSource":"30...@sandbox.hortonworks.com",
  "application":"hdfsAuditLog",
  "sourceStreams":"hdfsAuditLogEventStream",
  "policyId":"testHDFS",
  "alertExecutorId":"hdfsAuditLogAlertExecutor"
   },
   "alertContext":{  
  "properties":{  
 "allowed":"true",
 "site":"sandbox",
 "application":"hdfsAuditLog",
 "host":"10.0.0.1",
 
"policyDetailUrl":"http://localhost:9099/eagle-service/#/dam/policyDetail?policy=testHDFS&site=sandbox&executor=hdfsAuditLogAlertExecutor";,
 "securityZone":"NA",
 "dst":"NA",
 "alertMessage":"The Policy \"testHDFS\" has been detected with the 
below information: timestamp=\"1438307675161\" allowed=\"true\" cmd=\"open\" 
host=\"10.0.0.1\" sensitivityType=\"NA\" securityZone=\"NA\" 
src=\"/tmp/private\" dst=\"NA\" user=\"userA\" ",
 "alertEvent":"timestamp=\"1438307675161\" allowed=\"true\" 
cmd=\"open\" host=\"10.0.0.1\" sensitivityType=\"NA\" securityZone=\"NA\" 
src=\"/tmp/private\" dst=\"NA\" user=\"userA\" ",
 "timestamp":"1438307675161",
 "alertTimestamp":"2016-04-13 10:12:08",
 "cmd":"open",
 
"alertDetailUrl":"http://localhost:9099/eagle-service/#/dam/alertDetail/tv4MJX%5F%5F%5Fqvw5LBqlXeMWIuAAAjHMWiXlB00YOsfe8qEr9wdADXfR28vvscgmSntu59uW1ykBVB3iZNS";,
 "sourceStreams":"hdfsAuditLogEventStream",
 "policyId":"testHDFS",
 "sensitivityType":"NA",
 "src":"/tmp/private",
 "user":"userA"
  }
   },
   "serializeVerbose":true
}
```


> Alert list and details are not correctly displayed
> --
>
> Key: EAGLE-239
> URL: https://issues.apache.org/jira/browse/EAGLE-239
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.3.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
>  Labels: front-end
> Fix For: v0.4.0
>
> Attachments: alert-detail.png, alert-list.png
>
>
> Detail contents of policy alerts are empty, but the alert entity is
> {code}
> {"meta":{"elapsedms":2,"totalResults":1,"lastTimestamp":0,"firstTimestamp":0},"success":true,"obj":[{"prefix":"hadoop","timestamp":1460439827376,"tags":{"site":"sandbox","alertSource":"57347@LM-SHC-00950798","application":"cassandraQueryLog","sourceStreams":"cassandraQueryLogStream","policyId":"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy","hostname":null,"alertExecutorId":"cassandraQueryLogExecutor"},"encodedRowkey":"tv4MJX___qv3ALxPlXeMWPh3G-THMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE","alertContext":"{\"site\":\"sandbox\",\"application\":\"cassandraQueryLog\",\"host\":\"/1

[jira] [Commented] (EAGLE-239) Alert list and details are not correctly displayed

2016-04-14 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15241472#comment-15241472
 ] 

ASF GitHub Bot commented on EAGLE-239:
--

Github user haoch commented on the pull request:

https://github.com/apache/incubator-eagle/pull/145#issuecomment-210043520
  
@zombieJ , as @qingwen220 changes the alert entity schema, could you please 
update the patch correspondingly?


> Alert list and details are not correctly displayed
> --
>
> Key: EAGLE-239
> URL: https://issues.apache.org/jira/browse/EAGLE-239
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.3.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
>  Labels: front-end
> Fix For: v0.4.0
>
> Attachments: alert-detail.png, alert-list.png
>
>
> Detail contents of policy alerts are empty, but the alert entity is
> {code}
> {"meta":{"elapsedms":2,"totalResults":1,"lastTimestamp":0,"firstTimestamp":0},"success":true,"obj":[{"prefix":"hadoop","timestamp":1460439827376,"tags":{"site":"sandbox","alertSource":"57347@LM-SHC-00950798","application":"cassandraQueryLog","sourceStreams":"cassandraQueryLogStream","policyId":"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy","hostname":null,"alertExecutorId":"cassandraQueryLogExecutor"},"encodedRowkey":"tv4MJX___qv3ALxPlXeMWPh3G-THMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE","alertContext":"{\"site\":\"sandbox\",\"application\":\"cassandraQueryLog\",\"host\":\"/192.168.6.227\",\"ks\":\"dg_keyspace\",\"policyDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/policyDetail?policy=cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy&site=sandbox&executor=cassandraQueryLogExecutor\",\"masked_columns\":\"bank|ccno|email|ip|name|sal|ssn|tel|url\",\"type\":\"CQL_SELECT\",\"alertMessage\":\"The
>  Policy \\\"cf_ customer_details_and_ ks_ dg_keyspace_policy\\\" has been 
> detected with the below information: timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertEvent\":\"timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertTimestamp\":\"2016-04-12 
> 05:43:47\",\"timestamp\":\"1455574202864\",\"operation\":\"CQL_SELECT\",\"category\":\"QUERY\",\"alertDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/alertDetail/tv4MJX%5F%5F%5Fqv3ALxPlXeMWPh3G%2DTHMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE\",\"source\":\"/192.168.6.227\",\"sourceStreams\":\"cassandraQueryLogStream\",\"policyId\":\"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy\",\"other_columns\":\"id|npi\",\"cf\":\"customer_details\",\"user\":\"jaspa\"}"}],"type":"org.apache.eagle.alert.entity.AlertAPIEntity"}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (EAGLE-239) Alert list and details are not correctly displayed

2016-04-15 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15242859#comment-15242859
 ] 

ASF GitHub Bot commented on EAGLE-239:
--

Github user haoch commented on the pull request:

https://github.com/apache/incubator-eagle/pull/145#issuecomment-210436833
  
LGTM


> Alert list and details are not correctly displayed
> --
>
> Key: EAGLE-239
> URL: https://issues.apache.org/jira/browse/EAGLE-239
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.3.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
>  Labels: front-end
> Fix For: v0.4.0
>
> Attachments: alert-detail.png, alert-list.png
>
>
> Detail contents of policy alerts are empty, but the alert entity is
> {code}
> {"meta":{"elapsedms":2,"totalResults":1,"lastTimestamp":0,"firstTimestamp":0},"success":true,"obj":[{"prefix":"hadoop","timestamp":1460439827376,"tags":{"site":"sandbox","alertSource":"57347@LM-SHC-00950798","application":"cassandraQueryLog","sourceStreams":"cassandraQueryLogStream","policyId":"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy","hostname":null,"alertExecutorId":"cassandraQueryLogExecutor"},"encodedRowkey":"tv4MJX___qv3ALxPlXeMWPh3G-THMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE","alertContext":"{\"site\":\"sandbox\",\"application\":\"cassandraQueryLog\",\"host\":\"/192.168.6.227\",\"ks\":\"dg_keyspace\",\"policyDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/policyDetail?policy=cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy&site=sandbox&executor=cassandraQueryLogExecutor\",\"masked_columns\":\"bank|ccno|email|ip|name|sal|ssn|tel|url\",\"type\":\"CQL_SELECT\",\"alertMessage\":\"The
>  Policy \\\"cf_ customer_details_and_ ks_ dg_keyspace_policy\\\" has been 
> detected with the below information: timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertEvent\":\"timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertTimestamp\":\"2016-04-12 
> 05:43:47\",\"timestamp\":\"1455574202864\",\"operation\":\"CQL_SELECT\",\"category\":\"QUERY\",\"alertDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/alertDetail/tv4MJX%5F%5F%5Fqv3ALxPlXeMWPh3G%2DTHMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE\",\"source\":\"/192.168.6.227\",\"sourceStreams\":\"cassandraQueryLogStream\",\"policyId\":\"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy\",\"other_columns\":\"id|npi\",\"cf\":\"customer_details\",\"user\":\"jaspa\"}"}],"type":"org.apache.eagle.alert.entity.AlertAPIEntity"}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (EAGLE-239) Alert list and details are not correctly displayed

2016-04-15 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15242861#comment-15242861
 ] 

ASF GitHub Bot commented on EAGLE-239:
--

Github user asfgit closed the pull request at:

https://github.com/apache/incubator-eagle/pull/145


> Alert list and details are not correctly displayed
> --
>
> Key: EAGLE-239
> URL: https://issues.apache.org/jira/browse/EAGLE-239
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.3.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
>  Labels: front-end
> Fix For: v0.4.0
>
> Attachments: alert-detail.png, alert-list.png
>
>
> Detail contents of policy alerts are empty, but the alert entity is
> {code}
> {"meta":{"elapsedms":2,"totalResults":1,"lastTimestamp":0,"firstTimestamp":0},"success":true,"obj":[{"prefix":"hadoop","timestamp":1460439827376,"tags":{"site":"sandbox","alertSource":"57347@LM-SHC-00950798","application":"cassandraQueryLog","sourceStreams":"cassandraQueryLogStream","policyId":"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy","hostname":null,"alertExecutorId":"cassandraQueryLogExecutor"},"encodedRowkey":"tv4MJX___qv3ALxPlXeMWPh3G-THMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE","alertContext":"{\"site\":\"sandbox\",\"application\":\"cassandraQueryLog\",\"host\":\"/192.168.6.227\",\"ks\":\"dg_keyspace\",\"policyDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/policyDetail?policy=cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy&site=sandbox&executor=cassandraQueryLogExecutor\",\"masked_columns\":\"bank|ccno|email|ip|name|sal|ssn|tel|url\",\"type\":\"CQL_SELECT\",\"alertMessage\":\"The
>  Policy \\\"cf_ customer_details_and_ ks_ dg_keyspace_policy\\\" has been 
> detected with the below information: timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertEvent\":\"timestamp=\\\"1455574202864\\\" 
> operation=\\\"CQL_SELECT\\\" category=\\\"QUERY\\\" 
> host=\\\"/192.168.6.227\\\" source=\\\"/192.168.6.227\\\" 
> ks=\\\"dg_keyspace\\\" other_columns=\\\"id|npi\\\" 
> masked_columns=\\\"bank|ccno|email|ip|name|sal|ssn|tel|url\\\" 
> type=\\\"CQL_SELECT\\\" user=\\\"jaspa\\\" cf=\\\"customer_details\\\" 
> \",\"alertTimestamp\":\"2016-04-12 
> 05:43:47\",\"timestamp\":\"1455574202864\",\"operation\":\"CQL_SELECT\",\"category\":\"QUERY\",\"alertDetailUrl\":\"http://localhost:9099/eagle-service/#/dam/alertDetail/tv4MJX%5F%5F%5Fqv3ALxPlXeMWPh3G%2DTHMWiXsK8Rgesfe8rGJjw3ADXfR28vvscgmSntlDikFVykBVAKa2NE\",\"source\":\"/192.168.6.227\",\"sourceStreams\":\"cassandraQueryLogStream\",\"policyId\":\"cf_
>  customer_details_and_ ks_ 
> dg_keyspace_policy\",\"other_columns\":\"id|npi\",\"cf\":\"customer_details\",\"user\":\"jaspa\"}"}],"type":"org.apache.eagle.alert.entity.AlertAPIEntity"}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)