LogRaker Sources Features Pricing Docs Release Notes Blog Download

← Documentation

Amazon EC2 Sources

An Amazon EC2 Source follows a log on your Amazon EC2 instances: a single instance, a few of them, or every instance in a Target Group or Auto Scaling Group. LogRaker finds the instances with your AWS sign-in and connects to each one over SSH. Their lines come together in one Stream, each marked with the instance it came from. LogRaker checks the groups every 30 seconds, so when an Auto Scaling Group starts a new instance, the Stream reads it too.

Add one with File ▸ New ▸ 'Amazon EC2…', or choose 'New Source…' from the + menu and pick 'Amazon EC2'.

Creating one

The sheet has two pages. The first one takes the Source's Name, its Source Group, and how it signs in to AWS: the Region and the sign-in work as on every AWS Source (see Signing in to AWS), with IAM Identity Center, a shared profile or an access key, and optionally a role to assume. Then click 'Next'.

The second page says how LogRaker reaches the instances:

  • SSH User - the account on the instances, such as ec2-user on Amazon Linux or ubuntu on Ubuntu.
  • Address - Private IP connects to each instance's private address, so your Mac needs a way into their network: a Jump Host, a VPN, or being inside it. Public IP connects to each instance's public address, and an instance without one can't be reached. Instance Connect Endpoint connects to each instance's private address through the Instance Connect Endpoint in its VPC, so no public address, VPN or jump host is needed (see Instance Connect Endpoint). Leave Port blank for port 22.
  • Jump Host - an SSH Source to connect through, such as a bastion in the instances' VPC. See Jump Hosts. With Instance Connect Endpoint, there's none.
  • Instance Names - how the Instance column names each instance. See Instance names.

Under Instance Sign-In, Auth picks how LogRaker signs in to each instance:

  • Instance Connect - each connection gets a one-minute key through your AWS sign-in, so there's no key to keep. Amazon Linux and Ubuntu images come with Instance Connect. For other images, install it or use Private Key.
  • Private Key - a key the instances accept, such as the .pem file of their EC2 key pair. See Key formats.
  • Auto-Detect (Web Edition) and Password - as on an SSH Source.

Instance Connect signs in to the instances with your AWS sign-in, so the MFA code you give IAM Identity Center covers them too. Private Key and Password can't answer an instance that asks for a code of its own; see Authentication methods.

Click 'Test Connection', then 'Add'. 'Back' returns to the first page.

Test Connection

It checks your AWS sign-in and whether it may list instances, Target Groups and Auto Scaling Groups, connects to the jump host if there is one, and says how it will sign in to the instances, such as Instances: signs in as ec2-user with Instance Connect. It doesn't connect to an instance itself, so Instance Connect is checked when a Stream connects. With Instance Connect Endpoint, it also lists the VPCs that have one, such as Found Instance Connect Endpoints in 2 VPCs in us-east-1: vpc-0a1b2c3d, vpc-4e5f6a7b. If the sign-in is missing a permission, the result is a warning that names the actions it may not call.

Permissions (IAM)

Your AWS sign-in needs these permissions:

  • ec2:DescribeInstances - the instances, their addresses and their tags.
  • elasticloadbalancing:DescribeTargetGroups and elasticloadbalancing:DescribeTargetHealth - the Target Groups, their instances and their health.
  • autoscaling:DescribeAutoScalingGroups - the Auto Scaling Groups and their instances.
  • ec2-instance-connect:SendSSHPublicKey - only with Instance Connect.
  • ec2:DescribeInstanceConnectEndpoints and ec2-instance-connect:OpenTunnel - only with Instance Connect Endpoint.

A minimal policy:

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": [
      "ec2:DescribeInstances",
      "elasticloadbalancing:DescribeTargetGroups",
      "elasticloadbalancing:DescribeTargetHealth",
      "autoscaling:DescribeAutoScalingGroups",
      "ec2-instance-connect:SendSSHPublicKey"
    ],
    "Resource": "*"
  }]
}

With Instance Connect Endpoint, add ec2:DescribeInstanceConnectEndpoints and ec2-instance-connect:OpenTunnel. With IAM Identity Center, the role you pick needs these actions; with Assume role, the role you assume does. The instances' security group also has to let SSH in from your Mac, the jump host, or the Instance Connect Endpoint.

Instance Connect Endpoint

An EC2 Instance Connect Endpoint lets LogRaker reach instances that have only a private address, without a VPN or a jump host. Create one in each VPC whose instances you read, and let SSH into the instances from the endpoint's security group. Then set the Source's Address to Instance Connect Endpoint.

On the Source's Instances page, an instance in a VPC without one shows Error: No Instance Connect Endpoint in vpc-0a1b2c3d. LogRaker looks again every 30 seconds, so it reads the instance soon after you create one.

An endpoint takes at most 20 connections at once. Each instance a Source reads takes one, however many of its Streams read it, and connections other people open through the same endpoint count too. Past that, an instance shows Waiting: The endpoint is at its limit of 20 connections. and connects when one frees up.

AWS sets that limit and doesn't raise it, and a VPC can have only one endpoint (see Quotas for EC2 Instance Connect Endpoint). To read more than 20 instances in one VPC at once, set the Source's Address to Private IP and reach them through a Jump Host in the VPC, or over a VPN, which have no such limit. If the instances already send their logs to Amazon CloudWatch, an Amazon CloudWatch Stream reads them without connecting to any instance.

AWS ends a connection through an endpoint after an hour. A few minutes before that, LogRaker opens a new one and moves the Stream over, without a gap.

Streams

A Stream on an Amazon EC2 Source has an Instances tab, for the instances it reads. On its Source tab it follows a file, a folder or the systemd journal on each of them, as on an SSH Source. See Streams, Folder Streams and Journal Streams.

Picking the instances

The Instances tab lists what your AWS sign-in sees in the Source's region, in four sections: Target Groups, Auto Scaling Groups, Tags, and Other Instances, the ones in no group. Each group opens to its instances.

  • Tick a group to read all of its instances, including the ones that join it later.
  • Tick single instances to read just those, such as a few of a group's.
  • Under Tags, a key opens to its values, and each value to the instances with it. Tick a value to read every instance with it, or a key to read every instance with any value of it. With tags of more than one key ticked, choose under the list whether to read the instances with any of them or with all of them.

The search field finds groups, tags and instances by name, tag, instance ID or address, and 'Show stopped instances' lists the instances that aren't running too. The line under the list says how many you ticked and how many running instances they read, such as 2 chosen · reads on 5 instances. Something you ticked that AWS no longer lists stays ticked and marked, so you can untick it.

Browsing an instance's files

The folder button next to the path, and a Folder's 'Test', look at one running instance of the ones you picked, preferring one LogRaker is already connected to, and keep looking at the same one until you change the instances. The result says which one, such as On web-1 (i-0abc12de34f567890), one of 3 running instances. The instances of a group usually run the same image, so a path on one is on the others too.

Reading the lines

A Stream's lines from all of its instances are in one table, in time order. The Instance column shows which instance each line came from, in the instance's own color, the same in every view. The instances of one Stream get different colors, up to 12 of them. Right-click a line for:

  • 'Show Only', with the instance's name - only that instance's lines. 'Show All Instances' brings the others back.
  • 'Copy Instance ID'
  • 'Show on Source Page' - the instance on its Source's Instances page.

While the Stream runs, the sidebar lists its instances under it, one row each, with the instance ID in the instance's color, a status light, and a waveform while its lines come in. Select a row to see only that instance's lines, or Command-click to add more instances of the same Stream. Right-click a row for 'Copy Instance ID' and 'Show on Source Page'. Under a Folder Stream, each file's row holds the instances that have the file.

Instance names

How the Instance column names instances is set per Source: under Instance Names in its sheet, or in a Stream by right-clicking the column headers and choosing 'Name Instances By'.

  • Name and ID - the Name tag and the end of the ID, like web-1 · 3f9a2.
  • Name - the Name tag alone, or the ID where instances share a name.
  • Instance ID - the whole ID.
  • Host Name - the host name the instance's own logs use, like ip-10-0-1-5.
  • Any other tag LogRaker has found on the Source's instances, listed under Tags - its value, with the end of the ID where instances share one. An instance without the tag shows its name and ID.

A change renames the instances in all of the Source's Streams, and Undo changes it back.

The Source's Instances page

Select the Source and click 'Instances' above its Streams to see every instance its Streams read, under the group it's in, with what AWS says about it and how reading it goes. The Source opens on whichever of 'Streams' and 'Instances' you left it on. Until a Stream picks some, it says No Streams yet. A Stream chooses the instances it reads. LogRaker checks the groups every 30 seconds; click 'Refresh' to check them now. If a check fails, the page keeps showing what the last one found, with a row above it saying what went wrong and when the groups were last checked, and 'Try Again'.

The buttons at the right show the instances as a list, a map or a diagram. LogRaker remembers each Source's choice, and a Source you haven't switched yet starts with the one you picked last.

  • List - a box for each group, with each instance's Name, Instance ID, address, Health and Connection. Click a group's arrow to fold it, or Option-click to fold or unfold them all.
  • Map - the Streams, the groups they read, and each group's instances, joined by lines.
  • Diagram - each group as a box holding its instances, joined to a This Mac box by the Streams that read it.

In all three, a Target Group is outlined in dots of your accent color, an Auto Scaling Group in indigo dots, and tags and single instances in gray. A group that no longer exists says so on a line of its own, in yellow with a warning icon.

Instances a Stream picks one by one share a box, titled by their names, such as db-primary and db-replica.

Health is what AWS says: a Target Group's health check, an Auto Scaling Group's state, or the instance's own state. Connection says how reading the instance goes: Connected, Connecting…, Waiting for you to trust it, Waiting with the reason, Key declined, Retrying with the reason, Stopped, Not read: no running Stream reads it, or an error.

A map or a diagram opens zoomed to fit the page. The map puts a group's instances side by side, and the diagram its groups, as many as suit the page. One too big to read that way fills the page's width instead, and you scroll down. Zoom it with the magnifier buttons, the slider or a pinch on the trackpad, and click 'Zoom to Fit' to see all of it again. When it's bigger than the page, drag it to move around. Double-click a Stream's box to go to the Stream.

Click 'Details' on an instance's row or box for what AWS knows about it: its Instance ID, addresses, Private DNS, Zone, when it was Launched, its Health and Connection, and its tags, with 'Copy Instance ID' and 'Copy Address'. Right-click an instance for the same two commands.

Tags on the page

'Filter', next to the view buttons, narrows the page to the instances with the tags you pick: a key, then a value. More values of one key show more instances, tags of another key fewer. A count such as 3 of 8 instances says how many show, and 'Show All' in the same menu ends the filter. A group that no longer exists stays in view, so the filter never hides it. It only changes what the page shows: the Streams keep reading every instance.

To see one tag's value for every instance, click the Tag column's header in the list and pick the tag, or right-click the column headers and choose 'Show Tag'. The map and the diagram show it on each instance too.

Trusting the instances

The first time LogRaker connects to an instance, it asks you to trust the instance's key, as it does for any SSH server. New instances of a Source come together in one sheet, such as Trust 3 new instances of Production?, listing each one's Instance, Address and Fingerprint. Only trust them if you recognize them. Click 'Trust' to trust them all, or 'Cancel' to decline them.

Until you answer, their lines don't show, and the Source's Instances page says so above the instances, with 'Review…' to bring the sheet back. Declined instances stay unread until you click 'Ask Again' there, start the Stream again, or quit LogRaker.

You trust an instance once on this Mac, and every Source that reaches it trusts it too. If two Sources ask about the same instance at the same moment, one sheet asks, and your answer counts for both. If the key changes later, it warns you before connecting, as for an SSH Source (see Trust ledger). An instance not seen for 30 days is forgotten, since Auto Scaling replaces instances and a terminated one never comes back. These keys aren't listed in Settings ▸ Security.

When a sign-in is needed

With IAM Identity Center, the Source's Streams wait while this Mac isn't signed in (see When a sign-in is needed), and its Instances page shows 'Sign In…' instead of the instances. If you have to sign in again every 8 hours, see Staying signed in longer.

Monitors, Shortcuts and MCP

A Monitor watching an Amazon EC2 Stream can count only the lines of instances with certain tags, and each match shows the instance it came from. See Amazon EC2 instances by tag. Shortcuts gets each instance's ID, Name and tags (see Automation with Shortcuts & Siri), and the MCP Server tells AI agents which instance each line came from.

© 2026 Thomas Gumz · Native macOS log monitoring Features Pricing Download Docs Blog Changelog About Press Privacy Terms

Also by Thomas Gumz: PanoPaper, your security cameras as live video wallpaper.

Amazon Web Services, AWS, Amazon CloudWatch, and Amazon S3 are trademarks of Amazon.com, Inc. or its affiliates. Google Cloud and Firebase are trademarks of Google LLC. Supabase is a trademark of Supabase, Inc. LogRaker is an independent product and is not affiliated with, endorsed by, or sponsored by Amazon, Google, or Supabase.