Quick answer: To prove outages to your ISP, keep a log with the date, time and length of every drop, and whether your router was still reachable at the time. On a Mac you can do that for free with a short Terminal script that pings your router and the internet every few seconds and writes down each failure. For a log that runs by itself, keeps going after sleep, and comes with charts and CSV files, use PeakHour.
What your ISP needs to see
Support teams hear “my internet keeps dropping” all day, and a speed test taken when the line works proves nothing. What moves a ticket forward:
- Dates, times and durations of each outage, ideally over a week or more.
- Proof your home network was fine: your router answered while the internet didn’t. That rules out your Wi-Fi and puts the fault on the line or the ISP.
- How you’re connected: Ethernet or Wi-Fi, and your router and modem model.
- What you’ve already tried: restarting the modem and router, changing the cable.
The free method: a Terminal outage logger
This script checks your router and an internet host every 5 seconds. It writes a line to a text file only when something fails, so the file is your outage log.
- Open Terminal (Applications → Utilities).
- Paste this and press Return:
GW=$(route -n get default | awk '/gateway/ {print $2}')
echo "Logging to ~/outage-log.txt (router $GW). Press Ctrl-C to stop."
while true; do
ts=$(date '+%Y-%m-%d %H:%M:%S')
ping -c 1 -t 2 "$GW" >/dev/null 2>&1 && r=up || r=DOWN
ping -c 1 -t 2 1.1.1.1 >/dev/null 2>&1 && i=up || i=DOWN
[ "$r$i" != "upup" ] && echo "$ts router=$r internet=$i" | tee -a ~/outage-log.txt
sleep 5
done
- Leave the window open. Each failure looks like this:
2026-11-30 20:39:13 router=up internet=DOWN
2026-11-30 20:39:20 router=up internet=DOWN
How to read it: router=up internet=DOWN means your home network was fine and the connection beyond it failed, which is the line or the ISP. router=DOWN means the Mac lost the router itself, so check Wi-Fi first (see Wi-Fi, router or ISP?). A run of lines 5–7 seconds apart is one outage; its first and last timestamps give you the start and the length.
Keep the Mac awake. The log stops when the Mac sleeps. Open a second Terminal window and run caffeinate -i, which keeps the Mac from idle sleep until you press Control-C. On a MacBook, also keep the lid open. Use a Mac connected by Ethernet if you can, so Wi-Fi can’t muddy the result.
Limits of the free method: it checks every 5 seconds, so it can miss a drop shorter than that. It stops when you close Terminal or restart, it measures only up/down (not latency or packet loss), and you have to turn the text file into something your ISP will read.
Add a speed and responsiveness record
Outages aren’t the only thing ISPs fix. If the line stays up but slows down every evening, add a few networkQuality results at the bad times. It’s built into macOS and reports speed plus a responsiveness rating. Apple’s guide: Test Wi-Fi networks with Apple Network Responsiveness. Our guide to testing your ISP with networkQuality covers the options.
Starlink: logging outages on a satellite connection
Starlink drops have their own causes, and Starlink gives you some data of its own.
- Check the Starlink app first. Starlink’s help centre says the app’s Statistics page shows speed, uptime, latency, outages and alerts, and its Event Log records outages, router issues and events such as elevated packet loss or reboots (monitoring your Starlink; Event Log).
- Obstructions are the usual cause of short drops. Starlink says obstructions such as trees or buildings cause brief interruptions when all available satellites are blocked, and that these are most noticeable on video calls and online gaming (how obstructions affect your connection). Check the obstruction map in the app before you contact support.
- Run the Mac log too. The Starlink app shows what the dish saw. The script above shows what your Mac experienced, including your Wi-Fi and router.
router=up internet=DOWNon Starlink points to the satellite link (obstruction or network), not your home network. Lining up the two logs by time is the strongest evidence you can give. - Expect short drops. Obstruction drops are often only seconds long, shorter than the 5-second check above. Lower
sleep 5tosleep 1if you want to catch them, or use a monitor that measures continuously.
Do it automatically with PeakHour
PeakHour is a router and ISP monitor for Mac that does all of the above from the menu bar, every day, without a Terminal window.

- Outage alerts. Turn on Router becomes unreachable and Internet becomes unreachable. PeakHour notifies you when the connection drops and again when it’s back.
- An outage history with durations. The History window marks every outage and how long it lasted, next to latency and bandwidth for the same hours. A screenshot of a week of it is usually all a support agent needs.
- CSV logs for your ticket. Turn on CSV Logging for a monitor and it writes its readings to a file every minute or hour, ready to attach or open in a spreadsheet.
- Router vs ISP, measured separately. Latency, jitter and packet loss from your Mac to your router, from the router to your ISP’s gateway, and on to the internet sites you pick. Packet loss is reported over a rolling 5-minute window.
- Scheduled speed tests. Apple’s network quality test every hour, every 6 or 12 hours, or daily, and again when your network changes.
- Keeps itself running. PeakHour picks back up after sleep, Wi-Fi changes and outages without you touching it, and falls back to TCP and HTTP probes when ping is blocked.
PeakHour is a free download from the Mac App Store with a 7-day free trial, which is long enough to log a week of outages. After that it costs $19.99 a year or $49.99 once. There is no free tier. It needs macOS 14.6 or later.
Download PeakHour on the Mac App Store
FAQs
How do I prove to my ISP that my internet keeps dropping?
Give them a log with the date, time and length of each outage over several days, and show that your router was reachable while the internet wasn't. That proves the fault is outside your home. A free Terminal script can produce this log; PeakHour records it automatically, with charts and CSV files.
How long should I log outages before I contact my ISP?
A week usually shows a pattern, such as drops every evening or at the same time each night. If the line drops many times a day, two or three days of logs are often enough.
Does the log still work when my Mac is asleep?
No. Ping stops when the Mac sleeps. Run `caffeinate -i` in a second Terminal window to stop idle sleep, and keep a MacBook's lid open.
Can I log Starlink outages from my Mac?
Yes. The same script works on Starlink. Compare its timestamps with the outages and Event Log in the Starlink app. If your router stays reachable during a drop, the outage is on the satellite link, often caused by an obstruction.
Does PeakHour log outages on a Mac for free?
PeakHour has a 7-day free trial, enough to log a week of outages. After that, it's $19.99 a year or $49.99 once.