New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@llmaudit/logship

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@llmaudit/logship

Enterprise-grade, zero-dependency log shipping agent for @llmaudit. Lightweight, reliable, and performance-focused.

beta
latest
npmnpm
Version
1.0.2
Version published
Maintainers
2
Created
Source

Logship (by @llmaudit)

A high-performance, lightweight Node.js log shipping agent designed to tail files and pump logs to the LLM Audit Ingestion Server.

Features

  • Zero Dependencies: Built entirely with native Node.js modules for maximum stability and security.
  • Smart Tailing: Monitors multiple files simultaneously and resumes from where it left off.
  • Resilient: Automatic reconnection with exponential backoff and persistent registry for tracking file positions across restarts.
  • Performance Focused: Batches logs automatically to minimize HTTP overhead and server load.
  • Zero Config Mode: Run it entirely using CLI flags without creating any files.

Installation

npm install @llmaudit/logship

CLI Usage (The easy way)

Option A: Using CLI Flags (Zero Config)

Run Logship without creating a configuration file:

npx @llmaudit/logship -k your-key -f access.log,error.log

Option B: Using a Config File

If you have many logs or complex settings, use a JSON file:

npx @llmaudit/logship logship.config.json

Option C: Default Lookup

If you have a file named logship.config.json in your current folder, simply run:

npx @llmaudit/logship

CLI Configuration Options

FlagShortDescription
--api-key-kYour unique API Key
--endpoint-eIngestion Server URL (Defaults to https://log.llmaudit.ai)
--files-fComma-separated list of log files
--envEnvironment tag (prod, staging, dev)
--service-sName of the service
--intervalFlush interval in ms
--batch-sizeMax logs per batch

Library Usage

const { initLogger } = require('@llmaudit/logship');

const agent = initLogger({
  apiKey: "your-api-key",
  logFiles: ["./app.log"],
  env: "prod",
  service: "my-app"
  // endpoint: "https://log.llmaudit.ai" (Optional: Defaulted for you)
});

// agent.shutdown();

Keywords

logging

FAQs

Package last updated on 28 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts