See through all BGP data with a monocle.
Still in early prototype phase. You are warned.
bash
cargo install monocle
Subcommands:
- parse
: parse individual MRT files
- search
: search for matching messages from all available public MRT files
- time
: utility to convert time between unix timestamp and RFC3339 string
Top-level help menu: ```text monocle 0.0.1 Mingwei Zhang mingwei@bgpkit.com A commandline application to search, parse, and process BGP information stored in MRT files.
USAGE:
monocle
OPTIONS: -h, --help Print help information -V, --version Print version information
SUBCOMMANDS: help Print this message or the help of the given subcommand(s) parse Parse individual MRT files given a file path, local or remote scouter Investigative toolbox search Search BGP messages from all available public MRT files time Time conversion utilities ```
monocle parse
```text ➜ monocle git:(main) ✗ monocle parse --help monocle-parse 0.0.1 Parse individual MRT files given a file path, local or remote
USAGE:
monocle parse [OPTIONS]
ARGS:
OPTIONS:
-a, --as-path
monocle search
```text ➜ monocle git:(main) ✗ monocle search --help monocle-search 0.0.1 Search BGP messages from all available public MRT files
USAGE:
monocle search [OPTIONS] --start-ts
OPTIONS:
-a, --as-path
monocle time
```text
➜ ~ monocle time --help
monocle-time 0.0.3
Time conversion utilities
USAGE: monocle time [TIME]
ARGS:
OPTIONS: -h, --help Print help information -V, --version Print version information ```
Example runs: ```text ➜ monocle time +------------+---------------------------+ | unix | rfc3339 | +------------+---------------------------+ | 1657850362 | 2022-07-15T01:59:22+00:00 | +------------+---------------------------+
➜ monocle time 0
+------+---------------------------+
| unix | rfc3339 |
+------+---------------------------+
| 0 | 1970-01-01T00:00:00+00:00 |
+------+---------------------------+
➜ monocle time 2022-01-01T00:00:00Z +------------+---------------------------+ | unix | rfc3339 | +------------+---------------------------+ | 1640995200 | 2022-01-01T00:00:00+00:00 | +------------+---------------------------+
➜ monocle time 2022-01-01T00:00:00 Input time must be either Unix timestamp or time string compliant with RFC3339 ```
BGPKIT is a small-team focuses on building the best open-source tooling for BGP data processing in Rust. We have over 10 years of experience in working with BGP data and we believe that our work can enable more companies to start keeping tracks of BGP data on their own turf. Learn more about what we do at https://bgpkit.com.