INTEGRITY Cloudflare Docs

Magic BGP Logs

The descriptions below detail the fields available for magic_bgp_logs.

Direction

Type: string

Direction of the event relative to Cloudflare. Possible values are to_cloudflare | from_cloudflare, or empty for non-message events.

EventData

Type: object

Payload describing the event. Schema depends on EventKind.
open_message carries peer_asn, cloudflare_asn, bgp_id, hold_time, and capabilities.
update_message carries announced, as_path, and origin.
notification_message carries code, subcode, and reason.
route_refresh_message carries afi and safi.
bgp_state_transition carries from_state, to_state, and event.
tcp_handshake_failed carries reason, message, src, and dst.
stale_path_timer_expired carries purged_route_count.
session_config_changed carries disabled and the changed fields.
filter_config_changed carries import and export filter change flags.
redistribute_config_changed carries a single boolean.

EventKind

Type: string

BGP event type. Possible values are open_message | update_message | notification_message | route_refresh_message | bgp_state_transition | tcp_handshake_failed | stale_path_timer_expired | session_config_changed | filter_config_changed | redistribute_config_changed.

EventTimestamp

Type: int or string

Timestamp of when the event occurred.

TunnelID

Type: string

UUID (hex, no hyphens) of the IPsec / GRE tunnel the event belongs to.

TunnelName

Type: string

Name of the IPsec / GRE tunnel the event belongs to.