Built for www.logier.dev
logisch is a log parsing engine built with TypeScript. It transforms raw, unstructured log lines from various operating systems, databases, and application frameworks into typed, predictable LogEntry structures.
The package is optimized for bundlers and supports modern subpath exports, allowing you to import only the specific parsers your application needs without bloat.
You can import parsers individually to keep your production bundles minimal:
logisch/android- Android Logcat (Formats A & B)logisch/apache- Apache Server Error Logslogisch/bgl- IBM Blue Gene/L Supercomputer Logslogisch/linux- Linux System & Authentication Logslogisch/macos- Apple macOS Diagnostic Daemon Logslogisch/openssh- OpenSSH Daemon Security Auditslogisch/proxifier- Proxifier Network Traffic Logslogisch/spark- Apache Spark Data Engine Logslogisch/thunderbird- Thunderbird Cluster Topologieslogisch/windows- Windows CBS/CSI Servicing Logslogisch/zookeeper- Apache ZooKeeper Coordination Logslogisch/fallback- Heuristic Safety-Net Parser
npm install logischUsing Specific Subpath Parsers
import { ApacheParser } from "logisch/apache";
const parser = new ApacheParser();
const line = '[Sun Dec 04 04:47:44 2005] [notice] workerEnv.init() ok';
if (parser.canParse(line)) {
const logEntry = parser.parse(line, line);
console.log(logEntry);
}Follow these steps to set up the project locally for development:
-
Clone the repo:
git clone https://github.com/aspecsweb/logisch.git -
Navigate to the project directory
cd logisch -
Install dependencies
npm install -
Link for local application development:
To test changes live inside your frontend application without publishing, use npm link
Then, in your web app's root directory, run: npm link logisch
Build the package: npm run build