Hi from a boat full of gizmos (and their log files)

by•

Hi everyone, I'm Thomas! I live on a boat (mostly along the US east coast, and every year we run from the Florida hurricane season), and that boat is full of gizmos: a Cerbo GX, an NVIDIA Jetson, eight Garmin chartplotters, eleven UniFi cameras and of course a Mac mini.

So naturally I ended up writing software for all of it... first a boat tracker that tells friends when we leave or arrive at a marina, then an app that shows my UniFi cameras on the Garmin screens (which Garmin doesn't support out of the box, or at all, really), and a few Mac apps along the way, like , which lets me view those cameras as a live video wallpaper on my Mac.

Now... every one of those things writes its own logs on its own device, and after one too many evenings of SSH'ing into three boxes at once I built , a native Mac app that tails all of them in one window, side by side and lined up by time. It's launching here on Product Hunt later this month.

I'm new around here (more active on HN), so I'd love it if you'd check out the app before we launch, and tell me how you keep an eye on your own logs (or what's missing and you'd want to see!)

Happy to answer any questions!

- Thomas.

34 views

Add a comment

Replies

Best

Great boat setup. Our logs live on users' phones, so the habit is different: the app writes a plain text log file on the device in every build, and a user can share it from Settings when something goes wrong. Each line is written as a plain statement of what happened, every silent give up gets its own line, and every tap is logged by a stable English control name rather than a translated label. Lyrics, passwords and one time codes must never go into it. On the emulator it's logcat beside screenshots. One question about lining things up by time: what does LogRaker do when two boxes disagree about the clock? We had a phone whose idea of UTC ran nine hours ahead, and anything ordered by its timestamps would have been nonsense.

Hi   thanks! I like the "every silent give up gets its own line" rule, I wish half the gizmos on this boat did that...

So, clock skew was one of the first things that bit me, since the Cerbo GX and the Jetson never quite agree with my Mac mini (or with each other, really). So every time LogRaker connects to a box over SSH, it asks for that box's clock and time zone a few times in a row, keeps the answer with the shortest round trip (same trick NTP uses), and moves that Source's timestamps onto the Mac's clock. If a log line doesn't say what time zone it's in, it gets read in the server's time zone, so a phone nine hours off would've been caught one way or the other.

Of course, you can't SSH into Firebase or CloudWatch etc, so for those you line things up by hand: right-click a line in the log whose clock you think is right and pick 'Set Ref Time', then right-click the same event in the other log and pick 'Align to Ref Time', and the whole Source shifts over. A little badge in the pane header shows the offset afterwards.

Happy to answer any other questions!

 Thanks Thomas, and for turning it into a post. The shortest round trip trick is neat. The manual Set Ref Time path is the one that matches our case: the backend runs as cloud functions, and the phone side is a log file a user shares from Settings, so neither is a box you can SSH into. Lining up one event the user remembers (a tap that fails) with the backend's line for the same request sounds like exactly that. Can a plain shared text file be a Source, or does it need a live connection?

 What backend runs your cloud functions? We support Firebase and Google GCP, Amazon CloudWatch, Amazon S3 bucket logs and Supabase for now (Cloudflare is coming next), and local files.
Your plain shared text file could be a local source on your Mac and you could correlate it with any other log on any of those backend services I listed. It's not the most straightforward way as you'd have to first put the shared file from your customer as a local source, but it should work. I'll also think about how to make this easier to add a bunch of local files in one swoop (i.e. maybe an entire folder/directory).

 I made it into a blog post with addle. information:


Thanks for the inspiration ;)

Welcome to Product Hunt! 8 chartplotters and 11 cameras on one boat, that's a setup. I worked on the road for a few years, once from Longyearbyen in the Arctic over satellite, and the connection was like oxygen to me. I'm a server guy at heart and still do almost everything from the keyboard, so three boxes side by side lined up by time is my kind of app.

 Thank you! Check out version 3 which I just released; it includes a full featured Terminal now too: