forked from awslabs/aws-discovery-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiscovery_athena.ddl
111 lines (106 loc) · 3.44 KB
/
discovery_athena.ddl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
CREATE EXTERNAL TABLE IF NOT EXISTS processes_agent (
`account_number` bigint,
`agent_id` string,
`agent_assigned_process_id` string,
`is_system` boolean,
`name` string,
`cmd_line` string,
`path` string,
`agent_provided_timestamp` timestamp
)
ROW FORMAT SERDE 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
WITH SERDEPROPERTIES (
'serialization.format' = '1'
) LOCATION 's3://<BUCKET>/processes/'
TBLPROPERTIES ('has_encrypted_data'='false');
CREATE EXTERNAL TABLE IF NOT EXISTS network_interface_agent (
`account_number` bigint,
`agent_id` string,
`name` string,
`mac_address` string,
`family` string,
`ip_address` string,
`gateway` string,
`net_mask` string,
`timestamp` timestamp
)
ROW FORMAT SERDE 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
WITH SERDEPROPERTIES (
'serialization.format' = '1'
) LOCATION 's3://<BUCKET>/networkInterface/'
TBLPROPERTIES ('has_encrypted_data'='false');
CREATE EXTERNAL TABLE IF NOT EXISTS os_info_agent (
`account_number` bigint,
`agent_id` string,
`os_name` string,
`os_version` string,
`cpu_type` string,
`host_name` string,
`hypervisor` string,
`timestamp` timestamp
)
ROW FORMAT SERDE 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
WITH SERDEPROPERTIES (
'serialization.format' = '1'
) LOCATION 's3://<BUCKET>/osInfo/'
TBLPROPERTIES ('has_encrypted_data'='false');
CREATE EXTERNAL TABLE IF NOT EXISTS system_performance_agent (
`account_number` bigint,
`agent_id` string,
`total_disk_bytes_read_per_sec_in_kbps` double,
`total_disk_bytes_written_per_sec_in_kbps` double,
`total_disk_read_ops_per_sec` double,
`total_disk_write_ops_per_sec` double,
`total_network_bytes_read_per_sec_in_kbps` double,
`total_network_bytes_written_per_sec_in_kbps` double,
`total_num_logical_processors` int,
`total_num_cores` int,
`total_num_cpus` int,
`total_num_disks` int,
`total_num_network_cards` int,
`total_cpu_usage_pct` double,
`total_disk_size_in_gb` double,
`total_disk_free_size_in_gb` double,
`total_ram_in_mb` double,
`total_free_ram_in_mb` double,
`timestamp` timestamp
)
ROW FORMAT SERDE 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
WITH SERDEPROPERTIES (
'serialization.format' = '1'
) LOCATION 's3://<BUCKET>/systemPerformance/'
TBLPROPERTIES ('has_encrypted_data'='false');
CREATE EXTERNAL TABLE IF NOT EXISTS inbound_connection_agent (
`account_number` bigint,
`agent_id` string,
`source_ip` string,
`source_port` int,
`destination_ip` string,
`destination_port` int,
`ip_version` string,
`transport_protocol` string,
`agent_assigned_process_id` string,
`agent_creation_date` timestamp
)
ROW FORMAT SERDE 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
WITH SERDEPROPERTIES (
'serialization.format' = '1'
) LOCATION 's3://<BUCKET>/destinationProcessConnection/'
TBLPROPERTIES ('has_encrypted_data'='false');
CREATE EXTERNAL TABLE IF NOT EXISTS outbound_connection_agent (
`account_number` bigint,
`agent_id` string,
`source_ip` string,
`source_port` int,
`destination_ip` string,
`destination_port` int,
`ip_version` string,
`transport_protocol` string,
`agent_assigned_process_id` string,
`agent_creation_date` timestamp
)
ROW FORMAT SERDE 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
WITH SERDEPROPERTIES (
'serialization.format' = '1'
) LOCATION 's3://<BUCKET>/sourceProcessConnection/'
TBLPROPERTIES ('has_encrypted_data'='false');