# Orchestrator Keygen Peer List

**URL:** https://forum.hypercore.one/t/orchestrator-keygen-peer-list/187
**Category:** Development
**Created:** [August 28, 2023, 12:46am UTC](https://forum.hypercore.one/t/orchestrator-keygen-peer-list/187 "2023-08-28T00:46:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![0x3639](https://forum.hypercore.one/user_avatar/forum.hypercore.one/0x3639/32/33_2.png) [@0x3639](https://forum.hypercore.one/u/0x3639)
#### Post date: [August 28, 2023, 12:46am UTC](https://forum.hypercore.one/t/orchestrator-keygen-peer-list/187/1 "2023-08-28T00:46:49Z")

</div>

If you want a script to parse your log files to count the number of remote peers trying to perform the keygen do the following

```auto
nano peerlist.sh

```

Paste this script into that file.

```auto
#!/bin/bash

# Get logs from journalctl for the last 1 day
logs=$(journalctl --since "1 day ago" --unit=orchestrator -n 100000 --no-pager | grep "remote peer")

# Parse the logs to extract remote peer addresses
addresses=$(echo "$logs" | grep -oP '"remote peer":"\K[^"]+' | sort | uniq)

# Print the unique addresses
echo "Unique 'remote peer' addresses over the last 1day:"
echo "$addresses"

# Count the total number of unique addresses
total_unique=$(echo "$addresses" | wc -l)

echo "Total unique 'remote peer' addresses: $total_unique"

```

```auto
chmod +x peerlist.sh
./peerlist.sh

```
