[GH-ISSUE #3883] Filter-by-status for relayed & P2P state #8193

Closed
opened 2026-08-05 01:16:46 -04:00 by saavagebueno · 2 comments
Owner

Originally created by @florian-obradovic on GitHub (May 27, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/3883

I'd like to filter the detailed status for all peers which are connected via relay or P2P
Example: netbird status -d --filter-by-status P2P

Originally created by @florian-obradovic on GitHub (May 27, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/3883 I'd like to filter the detailed status for all peers which are connected via relay or P2P Example: `netbird status -d --filter-by-status P2P`
saavagebueno added the feature-request label 2026-08-05 01:16:46 -04:00
Author
Owner

@Silex commented on GitHub (Jun 6, 2025):

In the meantime you can use this:

netbird status --json | jq '.peers.details[] | select(.connectionType == "P2P")'
<!-- gh-comment-id:2948514875 --> @Silex commented on GitHub (Jun 6, 2025): In the meantime you can use this: ``` shell netbird status --json | jq '.peers.details[] | select(.connectionType == "P2P")' ```
Author
Owner

@florian-obradovic commented on GitHub (Jun 6, 2025):

@Silex awesome - thank you very much!
netbird status --json | jq -r '.peers.details[] | select(.connectionType == "P2P") | [.fqdn, .netbirdIp, .status, .connectionType] | @tsv' | column -t

or

netbird status --json | jq -r '.peers.details[] | select(.connectionType == "Relayed") | [.fqdn, .netbirdIp, .status, .connectionType] | @tsv' | column -t

Image

<!-- gh-comment-id:2948533596 --> @florian-obradovic commented on GitHub (Jun 6, 2025): @Silex awesome - thank you very much! `netbird status --json | jq -r '.peers.details[] | select(.connectionType == "P2P") | [.fqdn, .netbirdIp, .status, .connectionType] | @tsv' | column -t` or `netbird status --json | jq -r '.peers.details[] | select(.connectionType == "Relayed") | [.fqdn, .netbirdIp, .status, .connectionType] | @tsv' | column -t ` ![Image](https://github.com/user-attachments/assets/92b11e5e-5b65-4fe1-b9bd-e8cbcf1a5307)
Sign in to join this conversation.
No Label feature-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#8193