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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址