Getting Started with LogTrunk

Install LogTrunk and stream your first logs in under 5 minutes.

Updated: 2025-01-01 Beginner 5 min read

Step 1: Installation

LogTrunk is available for macOS, Windows, and Linux. Download the latest version from our homepage or directly from GitHub releases.

macOS

  1. Download the .dmg file for your architecture (Apple Silicon or Intel)
  2. Open the DMG and drag LogTrunk to your Applications folder
  3. Right-click and select "Open" the first time to bypass Gatekeeper

Windows

  1. Download the .exe installer
  2. Run the installer and follow the prompts
  3. LogTrunk will be available in your Start menu

Linux

  1. Download the .deb package
  2. Install with: sudo dpkg -i LogTrunk_*.deb
  3. Run logtrunk from your terminal or application menu

Tip: Check your architecture

On macOS, click the Apple menu → "About This Mac" to see if you have Apple Silicon (M1/M2/M3) or Intel.

Step 2: Create Your First Tab

LogTrunk uses tabs to organize different log sources. Each tab can have multiple sources and its own parser configuration.

  1. Launch LogTrunk
  2. Click the + button in the tab bar
  3. Give your tab a name (e.g., "My App Logs")

Think of tabs as separate workspaces. You might have one tab for your backend services, another for your frontend, and another for database logs.

Step 3: Add a Log Source

Now let's add a source to receive logs. The easiest way to get started is with a TCP source.

  1. In your tab, click TCP in the source toolbar
  2. Enter a port number (e.g., 9000)
  3. Make sure the source is enabled (checkbox checked)

LogTrunk will immediately start listening on that port. The status indicator will show green when the source is active.

Firewall Notice

Your firewall may prompt you to allow LogTrunk to accept incoming connections. Click "Allow" to receive logs from other machines on your network.

Step 4: Send Test Logs

Let's send some test logs to verify everything is working. Open your terminal and run:

echo "Hello from LogTrunk!" | nc localhost 9000

You should see the message appear in LogTrunk immediately!

Try sending a JSON log to see automatic parsing:

echo '{"level":"info","message":"User logged in","user_id":123}' | nc localhost 9000

LogTrunk will automatically detect and parse JSON, extracting fields like level, message, and user_id.

You're all set!

If you see logs appearing, congratulations! You've successfully set up LogTrunk.

Step 5: Next Steps

Now that you have LogTrunk running, here are some things to explore:

Was this article helpful?

LogTrunk Documentation