VPC logs queries
VPC Flow Logs queries
Show VPC Flowlog activity for SSH and RDP
SELECT
*
FROM panther_logs.public.aws_vpcflow
WHERE
p_occurs_between('2021-01-01', '2021-01-02')
AND
(srcport IN (22, 3389) OR dstport IN (22, 3389))
ORDER BY p_event_time ASC
LIMIT 100SELECT
*
FROM panther_logs.aws_vpcflow
WHERE
p_occurs_between('2021-01-01', '2021-01-02')
AND
(srcport IN (22, 3389) OR dstport IN (22, 3389))
ORDER BY p_event_time ASC
LIMIT 100Show VPC Flowlog activity for an IP address
SELECT
*
FROM panther_logs.public.aws_vpcflow
WHERE p_occurs_between('2021-01-01', '2021-01-02')
AND array_contains('1.2.3.4'::variant, p_any_ip_addresses)
ORDER BY p_event_time ASC
LIMIT 100SELECT
*
FROM panther_logs.aws_vpcflow
WHERE p_occurs_between('2021-01-01', '2021-01-02')
AND contains(p_any_ip_addresses, '1.2.3.4')
ORDER BY p_event_time ASC
LIMIT 100Show VPC Flowlog Activity Related to CloudTrail sourceIPAddresses Doing Console Signins
VPC DNS query examples
Sources with most queries in past 1 week
Rare queries in past 4 weeks
List queries, remove AWS internal queries
Split and list the top 10 TLDs
Last updated
Was this helpful?

