Azure Network Watcher

Download 12
Last updated Dec 2, 2024

azure-nsgflow-logs

Download NSG flow logs for a specified time range from Azure storage account.

azure-nsgflow-logs [profile=PROFILE] [duration=NUM{mon|w|d|h|m|s}] [from=yyyyMMddHHmmss] [to=yyyyMMddHHmmss]
profile=PROFILE
Azure NSG Flow connect profile code
duration=NUM{mon|w|d|h|m|s}
Scan only recent data. You should use s(second), m(minute), h(hour), d(day), mon(month) time unit. For example, 10s means data from 10 seconds earlier.
from=yyyyMMddHHmmss
Start time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
to=yyyyMMddHHmmss
End time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.

Output Fields

FieldTypeNameDescription
_timeDateEvent time
profileStringConnect profileAzure NSG Flow connect profile code.
cloud_resource_groupStringCloud resource groupNSG resource group
cloud_resource_nameStringCloud resource nameNSG resource name
directionStringDirectione.g. outbound, inbound, lateral
src_ipIP addressSource IP
src_portIntegerSource port
dst_ipIP addressDestination IP
dst_portIntegerDestination port
protocolStringProtocole.g. TCP, UDP
policyStringPolicyNSG security rule name
actionStringActione.g. PERMIT, DENY
stateStringStatee.g. start, end, continue
total_bytesLongTotal bytesSum of sent_bytes and rcvd_bytes.
sent_bytesLongSent bytesBytes from client to server.
rcvd_bytesLongReceived bytesBytes from server to client.
total_pktsLongTotal packetsSum of sent_pkts and rcvd_pkts.
sent_pktsLongSent packetsPackets from client to server.
rcvd_pktsLongReceived packetsPackets from server to client.
cloud_resourceStringCloud resourceFull qualified Azure resource name
blob_pathStringBlob pathOrigin blob