THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
5. Validate with Sample Policy
a. Define sample policy with eagle
Code Block | ||
---|---|---|
| ||
from cassandraQueryLogStream[(ks == 'dg_keyspace') and (cf == 'customer_details')] select * insert into outputStream; |
b. Trigger alert with sample event
Code Block | ||
---|---|---|
| ||
$ $KAFKA_HOME/bin/kafka-console-producer.sh --topic cassandra_querylog_sandbox --broker-list sandbox.hortonworks.com:6667 {"host": "/192.168.6.227","source": "/192.168.6.227","user": "jaspa", "timestamp": 1455574202864, "category": "QUERY", "type": "CQL_SELECT", "ks": "dg_keyspace","cf": "customer_details","operation": "CQL_SELECT","masked_columns": "bank|ccno|email|ip|name|sal|ssn|tel|url","other_columns": "id|npi"} |
...