Search Query Guide

Learn the search query language for BGP events and RADB data.

Tips for Efficient Searching

  • When searching events, use fields marked with fast for extremely fast searches. These fields have lookup tables on the backend that dramatically improve query performance.
  • * Be specific with your queries. Searching across columns without lookup tables and broad categories will take a long time.

Quick Start

The search bar automatically detects what you're searching for:

Input Detected As Action
12345 or AS12345 ASN Opens ASN overview page
1.2.3.0/24 Prefix Opens prefix overview page
1.2.3.4 IP Address Shows prefix hierarchy
peer_asn: 13335 Events query Searches BGP events
route.descr: "Cloudflare" RADB query Searches RADB registry
cloudflare Free text Searches RADB descriptions

Query Syntax

Basic Structure

Queries use a field: value syntax:

field_name: value
field_name: "value with spaces"

Operators

Combine multiple conditions with boolean operators:

Operator Description Example
AND Both conditions must match peer_asn: 13335 AND origin_asn: 13335
OR Either condition can match peer_asn: 13335 OR peer_asn: 2914
NOT Exclude matches NOT peer_asn: 13335
( ) Group conditions (peer_asn: 13335 OR peer_asn: 2914) AND event_type: withdrawal

Value Formats

Plain values (no spaces):

peer_asn: 13335

Quoted values (with spaces or special characters):

route.descr: "Cloudflare Inc"

Communities (always quote values with colons):

community: "2914:420"

Advanced Examples

Investigating a Prefix Hijack

1. Find who should be originating the prefix:

route.prefix: 1.2.3.0/24

2. Find actual BGP announcements:

prefix: 1.2.3.0/24 AND event_type: announcement

3. Find announcements from unexpected origins:

prefix: 1.2.3.0/24 AND NOT origin_asn: 12345

Tracking Transit Relationships

Find routes that transit through Level3 (AS3356):

as_in_path: 3356 AND event_type: announcement

Find Google routes that transit Cogent:

origin_asn: 15169 AND as_in_path: 174

Community-Based Analysis

Find all blackhole routes (common community value 666):

community_action: 666 AND event_type: announcement

Find routes tagged with Cloudflare communities:

community_asn: 13335

RADB Registration Analysis

Find all objects maintained by an organization:

route.mnt_by: "EXAMPLE-MNT"

Find AS-SETs containing a specific ASN:

as_set.members: "AS13335"

Find contacts by email domain:

contact.email: ".*@cloudflare.com"