Skip to content

Instantly share code, notes, and snippets.

@huynhbaoan
Created November 18, 2024 08:47
Show Gist options
  • Save huynhbaoan/d7a72490b87e874fdfb089024509f655 to your computer and use it in GitHub Desktop.
Save huynhbaoan/d7a72490b87e874fdfb089024509f655 to your computer and use it in GitHub Desktop.
parse @message /^.*eni-\w+\s+(?<srcAddr>\d+\.\d+\.\d+\.\d+)\s+(?<destAddr>\d+\.\d+\.\d+\.\d+)\s+(?<srcPort>\d+)\s+(?<destPort>\d+)\s+(?<protocol>\d+)\s+(?<tcpFlag>\d+)\s+\d+\s+\d+\s+\d+\s+\d+\s+\d+\s+(?<action>\w+)\s+OK/
| filter destPort="993" and isIpv4InSubnet(destAddr, "10.154.113.89/32")
| display srcAddr, destAddr, srcPort, destPort, tcpFlag, action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment