pinbadissector

command module
v0.0.0-...-0d4e530 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2019 License: MIT Imports: 8 Imported by: 0

README

pinbadissector

This utility reads pinba packets from network or from pcap file and prints them in json format.

Usage

How to collect pcap file?

sudo tcpdump -A -n "udp and host 10.20.210.161 and port 30002" -w pinba.pcap

Use jq utility to simplify parsing.

$ ./pinbadissector -pcapfile pinba.pcap | jq .server_name | sort | uniq -c | sort -n -r
11243 "co-front0"
11188 "co-front0-shard0"
4106 "pe-front0"
4076 "pe-front0-shard0"
 754 "chappy_us-front0"
 710 "lumen_us-front0-shard0"
 710 "lumen_us-front0"
 225 "chappy_us-front0-shard3"
 219 "chappy_us-front0-shard0"
 187 "chappy_us-front0-shard1"
 126 "chappy_us-front0-shard2"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL